Junit5 @test Método cujos dados vêm do dataTestSearchString
// JUnit5 @Test method whose data comes from dataForTestSearchString
@ParameterizedTest(name = "#{index} - [{0}]")
@MethodSource("dataForTestSearchString")
public void testFilesFromDirectoriesAndPattern(final String label, final String regex,
final String stringToMatchAgainst, final String expected) {
final String actual = searchString(regex, stringToMatchAgainst);
assertEquals(expected, actual);
}
Kalande77 Kapaya