Rule: UnusedPrivateMethod
Description: We should update the UnusedPrivateMethod to look for and not flag JUnit 5 parameterized test method sources. Although these methods are not being used by our code, junit is using them.
Code Sample demonstrating the issue:
private static Stream<Arguments> basenameKeyArguments() { // Violation!
return Stream.of(
Arguments.of("simple", "simple"),
Arguments.of("simple", "one/two/many/simple"),
Arguments.of("simple", "//////an/////awful/key////simple")
);
}
@ParameterizedTest
@MethodSource("basenameKeyArguments")
void basenameKeyTest(final String expected, final String testString) {
assertEquals(expected, NetworkTable.basenameKey(testString));
}
jacq42, marwlod, jeffford, bobtiernay-okta, cmckerracher-okta and 15 more
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4