I am writing an extension for a test using @ParameterizedTest. My test looks like:
@ParameterizedTest
@ValueSource(strings={"string1", "string2"})
public void test1(String name){
System.out.println(name);
}
In the extensions, how do I get the TestDesciptor to find out which invocation in currently active?
public class MyExtension implements BeforeEachCallBack{
@Override
public void beforeEach(ExtensionContext extensionContext)
// What to do here? extensionContext.?
}
}