我正在使用@ParameterizedTest 为测试编写扩展。我的测试看起来像:
@ParameterizedTest
@ValueSource(strings={"string1", "string2"})
public void test1(String name){
System.out.println(name);
}
在扩展中,如何让 TestDeciptor 找出当前处于活动状态的调用?
public class MyExtension implements BeforeEachCallBack{
@Override
public void beforeEach(ExtensionContext extensionContext)
// What to do here? extensionContext.?
}
}