use of org.junit.platform.engine.discovery.UriSelector in project junit5 by junit-team.
the class DiscoveryRequestCreatorTests method convertsUriSelectors.
@Test
void convertsUriSelectors() {
options.setSelectedUris(asList(URI.create("a"), URI.create("b")));
LauncherDiscoveryRequest request = convert();
List<UriSelector> uriSelectors = request.getSelectorsByType(UriSelector.class);
assertThat(uriSelectors).extracting(UriSelector::getUri).containsExactly(URI.create("a"), URI.create("b"));
}
use of org.junit.platform.engine.discovery.UriSelector 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());
}
Aggregations