I created 2 Test classes (1 with 30 testcases, the other one with 10 testcases) in Apache Camel with Spring and Maven. One of the Test class works fine, and runs if I build with Maven.
mvn test
<- Works with one Test class
mvn package
<- Works also with one Test class
But the other test class don't run. Both are in src/test/java
Also both test classes are in target/test-classes/...
One different is in target/test-classes/...
the not working class have an second file with ...Test$1.class
in the same folder. But I cannot open it.
And one second different have the classes: The not working class extends from CamelTestSupport and is a junit4. The working test-class is from junit5.
I think the maven-surefire-plugin don't find the junit4 test class. But how can I make maven-surefire-plugin finding junit4 test classes?