Stefan Birkner's user avatar
Stefan Birkner's user avatar
Stefan Birkner's user avatar
Stefan Birkner
Lead Developer
  • Member for 13 years, 3 months
  • Last seen this week
357 votes
Accepted

Warning: The method assertEquals from the type Assert is deprecated

261 votes
Accepted

How to test code dependent on environment variables using JUnit?

167 votes

Why doesn't JUnit provide assertNotEquals methods?

137 votes

How to test methods that call System.exit()?

119 votes

When using JUnit's @Parameterized, can I have some tests still run only once

107 votes

Suppressing GPG signing for Maven-based continuous integration builds (Travis CI)

85 votes
Accepted

Unable to run JUnit test with PowerMockRunner

77 votes

How do I pass the HttpServletRequest object to the test case?

73 votes

mock instance is null after @Mock annotation

53 votes

How to use JUnit and Hamcrest together?

33 votes

Dealing with System.exit(0) in JUnit tests

30 votes
Accepted

How to simulate throwing an exception only once in retry with JUnit/Mockito test?

28 votes

How can I make WireMock port more dynamic to use it for testing service

22 votes
Accepted

Is the 'IT.java' filename Suffix (instead of 'Test.java') for JUnit Integration Tests a convention?

18 votes
Accepted

how to turn non-parallel junit parameterized tests into parallel run

17 votes
Accepted

Having an issue with mocking a method which has a generic (? extends Collection) return type

13 votes
Accepted

Using Spring's MockMvc framework, how do I test the value of an attribute of an attribute of my model?

12 votes

Override Maven plugin configuration defined in the pom pluginManagement from the command line

11 votes
Accepted

Junit External Resource @Rule Order

11 votes

Why has AnnotationReader been removed from JAXB reference implementation?

11 votes
Accepted

Multiple hasProperty constraints for Hamcrest matcher

11 votes

Parameterized junit testing with more than one test

11 votes

Mocking SFTP, FTP, FTPS, Local File System Server in Java

10 votes
Accepted

Hamcrest - Matchers.hasProperty: how to check if a List of objects contains an object with a concrete value

9 votes

junit testing for user input using Scanner

9 votes
Accepted

Unable to expect multiple exceptions with JUnit's ExpectedException

9 votes

Webdriver and proxy server for firefox

8 votes
Accepted

Travis CI With Ant Build, Not Finding JUnit

7 votes
Accepted

Unable to perform Junit Parameterized test execution

7 votes
Accepted

Difference between @TestSubject and @InjectMocks?

1
2 3 4 5
…
14