Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

JUnit5 @Test method whose data comes from dataForTestSearchString

// 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);
}
Source by robertmarkbramprogrammer.blogspot.com #
 
PREVIOUS NEXT
Tagged: #method #data #dataForTestSearchString
ADD COMMENT
Topic
Name
2+3 =