Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.4
-
Fix Version/s: 2.4
-
Component/s: Junit 4.x support
-
Labels:None
-
Complexity:Intermediate
-
Number of attachments :
Description
Run "mvn test" with the attached project. The setup will fail as "setup" never runs.
This test depends on junit:junit-dep rather than junit:junit. junit-dep is just like regular junit, except it doesn't bundle hamcrest in the junit jar; junit-dep.jar includes only junit.* stuff. The junit-dep pom depends on hamcrest-core 1.1.
Surefire fails to detect junit:junit-dep and treats the test as a POJO test.
Attachments
Issue Links
| This issue is superceded by: | ||||
| SUREFIRE-519 | junit-dep 4.4+ isn't detected - transitive dependency to JUnit-3.x causes POJO-test treatment |
|
|
|
fixed in revision 597192