FP for rule 1144 on methods referred my MethodSource with multiple references

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

Hi @joaocotralha,
Welcome to the community!

Thank you for the thorough report; I have created this ticket to fix the issue.

Cheers,

Dorian