use of org.junit.platform.suite.api.SelectUris in project junit5 by junit-team.
the class SuiteLauncherDiscoveryRequestBuilderTests method selectUris.
@Test
void selectUris() {
@SelectUris("path/to/root")
class Suite {
}
LauncherDiscoveryRequest request = builder.suite(Suite.class).build();
List<UriSelector> selectors = request.getSelectorsByType(UriSelector.class);
assertEquals(URI.create("path/to/root"), exactlyOne(selectors).getUri());
}
use of org.junit.platform.suite.api.SelectUris in project junit5 by junit-team.
the class SuiteLauncherDiscoveryRequestBuilderTests method selectUrisFiltersEmptyUris.
@Test
void selectUrisFiltersEmptyUris() {
@SelectUris("")
class Suite {
}
LauncherDiscoveryRequest request = builder.suite(Suite.class).build();
assertTrue(request.getSelectorsByType(UriSelector.class).isEmpty());
}
Aggregations