I have one main test class (A) and another (B) that extends from it.
A has an annotation @RunWith(SpringJUnit4ClassRunner.class)to initialize it. I need to use annotation @RunWith(JUnitParamsRunner.class)on B.
But it seems that I can not do both. Is there a way I can parameterize test suites without annotation @RunWith?
Another solution is to use
testContextManager = new TestContextManager(AbstractInvoiceCreationModuleTest.class);
testContextManager.prepareTestInstance(this);
But I can not write this in the method @BeforeClass, because it is static and does not allow using it. I do not want to write the above code snippet in the method @Before, since the class will be initialized before each test method. And many test classes extend from A.
What can be done?