I have following tests structure:
public class WorkerServiceTest {
public class RaiseErrorTest extends AbstractDbUnitTest{
@Test
public void testSomething(){
}
...
}
...
}
It's done because I don't want to create a separate class file for every test case extending AbstractDbUnitTest
.
The problem is that mvn test
doesn't run test from my inner class. Is there is a way how to configure Maven to run such tests? Of course I can create mehtods in the parent class calling the inner class methods but I want a clearer way.