use of org.junit.platform.suite.api.SelectDirectories in project junit5 by junit-team.
the class SuiteLauncherDiscoveryRequestBuilderTests method selectDirectoriesFiltersEmptyPaths.
@Test
void selectDirectoriesFiltersEmptyPaths() {
@SelectDirectories("")
class Suite {
}
LauncherDiscoveryRequest request = builder.suite(Suite.class).build();
assertTrue(request.getSelectorsByType(DirectorySelector.class).isEmpty());
}
use of org.junit.platform.suite.api.SelectDirectories in project junit5 by junit-team.
the class SuiteLauncherDiscoveryRequestBuilderTests method selectDirectories.
@Test
void selectDirectories() {
@SelectDirectories("path/to/root")
class Suite {
}
LauncherDiscoveryRequest request = builder.suite(Suite.class).build();
List<DirectorySelector> selectors = request.getSelectorsByType(DirectorySelector.class);
assertEquals(Paths.get("path/to/root"), exactlyOne(selectors).getPath());
}
Aggregations