use of org.junit.jupiter.params.provider.CsvSource in project VocabHunter by VocabHunter.
the class FileNameToolTest method testIsSessionFile.
@ParameterizedTest
@CsvSource({ "'test.wordy', true", "'/home/test.wordy', true", "'/home/test', false", "'/home/test.txt', false" })
public void testIsSessionFile(final String name, final boolean expected) {
Path file = Paths.get(name);
assertEquals(expected, FileNameTool.isSessionFile(file));
}
Aggregations