Let's say I have the following code:
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);
}
}
}
When I run this, I get:
No tests found with test runner 'JUnit 5'.
How can I get this to work? I'm a beginner in Java, so I'm probably forgetting something obvious