junit 377

  1. How do you assert that a certain exception is thrown in JUnit 4 tests?
  2. Why doesn't JUnit provide assertNotEquals methods?
  3. How to run test methods in specific order in JUnit4?
  4. Maven does not find JUnit tests to run
  5. JUnit test for System.out.println()
  6. Conditionally ignoring tests in JUnit 4
  7. Difference between @Before, @BeforeClass, @BeforeEach and @BeforeAll
  8. How to run JUnit test cases from the command line
  9. Injecting Mockito mocks into a Spring bean
  10. differences between 2 JUnit Assert classes
  11. Mockito: Trying to spy on method is calling the original method
  12. How to capture a list of specific type with mockito
  13. Get name of currently executing test in JUnit 4
  14. Getting “NoSuchMethodError: org.hamcrest.Matcher.describeMismatch” when running test in IntelliJ 10.5
  15. How to verify a method is called two times with mockito verify()
  16. Mockito : how to verify method was called on an object created within a method?
  17. IntelliJ IDEA with Junit 4.7 “!!! JUnit version 3.8 or later expected:”
  18. Java: Is assertEquals(String, String) reliable?
  19. Changing names of parameterized tests
  20. Compare two JSON objects in Java
  21. Configuring IntelliJ IDEA for unit testing with JUnit
  22. How does Junit @Rule work?
  23. Meaning of epsilon argument of assertEquals for double values
  24. When do Java generics require <? extends T> instead of <T> and is there any downside of switching?
  25. When to use Mockito.verify()?
  26. JUnit XML format specification that Hudson supports
  27. Java: How to test methods that call System.exit()?
  28. Difference between setUp() and setUpBeforeClass()
  29. How to tell a Mockito mock object to return something different the next time it is called?
  30. How to get the path of src/test/resources directory in JUnit?
  31. Why should I use Hamcrest-Matcher and assertThat() instead of traditional assertXXX()-Methods
  32. Assert an object is a specific type
  33. Pass a local file in to URL in Java
  34. How to use Junit to test asynchronous processes
  35. JUnit confusion: use 'extends TestCase' or '@Test'?
  36. How to use ArgumentCaptor for stubbing?
  37. AssertContains on strings in jUnit
  38. How to test that no exception is thrown?
  39. Mockito. Verify method arguments
  40. Error:(23, 17) Failed to resolve: junit:junit:4.12
  41. Why use JUnit for testing?
  42. Populating Spring @Value during Unit Test
  43. Checking that a List is not empty in Hamcrest
  44. JUnit vs TestNG
  45. Warning: The method assertEquals from the type Assert is deprecated
  46. How to do a JUnit assert on a message in a logger
  47. Python unittests in Jenkins?
  48. Assert about a List in Junit
  49. Junit: splitting integration test and Unit tests
  50. What order are the Junit @Before/@After called?