junit4 icon indicating copy to clipboard operation
junit4 copied to clipboard

A programmer-oriented testing framework for Java.

Results 111 junit4 issues
Sort by recently updated
recently updated
newest added

…re is no @FromDataPoints annotation, or the named data points represent a non-empty set of the same type. Fixes #1648

changes requested

When I test with mvn test, the error is as follows: >Running org.junit.rules.TemporaryFolderUsageTest Tests run: 24, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.105 sec

When I have a test with `@Parameterized.Parameters(name = "{1} : {0}")` If I try to rerun failed tests in Intellij Idea, then I get: ``` java.lang.Exception: No tests found matching...

parameterized

This was previously discussed in #1363 and I think the new treatment of `ErrorCollector. checkSucceeds()` is correct. However `ErrorCollector.addError()` is more commonly used when calling sub-methods or in wrapper `Rules`...

Avoids duplicate implementations of RunListener for different test and provides Hamcrest matchers for verifying events sent to the listener.

This relates to #1350, "Code base doesn't comply with JUnit's own coding style". It adds the Google Formatter to reformat the code, and Checkstyle to enforce compliance. It doesn't actually...

I have the following problem (using _junit 4.11_): ``` java @ClassRule public static TemporaryFolder tmp = new TemporaryFolder(); ... @Parameters public static Collection data() throws Exception { return java.util.Arrays.asList(new Object[][]...

At QueryDSL, we were surprised that Enclosed tests were not run when the category was included as group filter. It turns out to be because the declaring class is not...

The ordering introduced with #1130 is a great feature. Also the fact that the annotation is inherited is really helpful in some cases. But when a parameterized test inherits an...

parameterized

There is a build failure with OpenJDK 17 caused by javadoc errors: [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] //src/main/java/org/junit/runners/Parameterized.java:[125,3] error: heading used out of sequence: , compared...

javadoc
maven