Hi i got an abstract BaseTest and a second with 2 attribute implementation of this BaseTest
I want to call all @Test on attribute class.
some Code :
public abstract class BaseTest<T> {
public abstract T getInstance();
@BeforeEach
public void setup(){
this.instance = getInstance();
}
@Test
all test methods ....
I want to create a second class with 2 implementation of this BaseTest like
class TwoImplOfBaseTest {
private BaseTest<Integer> testA;
private BaseTest<String> testB;
@Test
public void testAll(){
//write something like testA.doAllTest();
//write something like testB.doAllTest();
}
thanks for reading