E.g. in JUnit5 test class/method can be non-public, but package visible only. Please consider this example:
class TestClass {
class Base {
@Test
void testMethod1() {}
@Test
void testMethod2() {}
}
@Nested
class Variant1 extends Base {
// configuration only, no test method
}
@Nested
class Variant2 extends Base {
// configuration only, no test method
}
}
True, LcDSL currently only supports the JUnit Plugin Test Type from PDE, and the SWTBot Junit Tests. Additional support can be added (... when time permits and/or somebody cares to contribute ;)).
In the LCDSCL the block
does not accept all JUnit5 test classes.
E.g. in JUnit5 test class/method can be non-public, but package visible only. Please consider this example: