假设我有以下代码:
class Testing {
String[] text() {
String[] text = { "A", "B" };
return text;
}
@Nested
class NestedTesting {
@ParameterizedTest
@MethodSource("text")
void A(String text) {
System.out.println(text);
}
@ParameterizedTest
@MethodSource("text")
void B(String text) {
System.out.println(text);
}
}
}
Run Code Online (Sandbox Code Playgroud)
运行此命令时,我得到:
No tests found with test runner 'JUnit 5'.
我该如何工作?我是Java的初学者,所以我可能会忘记一些明显的东西