Maven 3.x.x complains about my mock “TestPacket” class that I use for another real test:
java.lang.Exception: No runnable methods
How can I avoid Maven complaining about this?
I did this for now (in TestPacket):
@Test
public void workaround() {
}
But there should be another clean way…
Thank you for your time!
Andrew
This is more of an JUnit issue than a maven one. If you don’t want your TestPacket class to be treated as a JUnit test class by JUnit, annotate it (at the class level) with JUnit’s
@Ignoreannotation