Hi,
Similar to:
But the FP is presented only when using MethodSource with multiple argument syntax
Example:
private static Stream<Arguments> getArguments() {
return Stream.of(
Arguments.of("arg")
)
}
@MethodSource({"getArguments"})
void testAndAssert() {}
The above code will trigger rule 1144 on function getArguments() definition. This only happens if “getArguments” in MethodSource is between {}. If instead we do:
@MethodSource("getArguments")
There’s no issue, as per Jira