Skip to content

Commit

Permalink
Run formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-mcnamara committed Aug 8, 2024
1 parent 8e3166c commit 2495f44
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,23 +90,23 @@ protected LauncherDiscoveryRequest getRequest(String testClassName) {
// We only allow for one level of nesting at the moment
boolean enclosed = isRunWithEnclosed(testClass);
List<DiscoverySelector> classSelectors =
enclosed
? new ArrayList<>()
: Arrays.stream(testClass.getDeclaredClasses())
.filter(clazz -> Modifier.isStatic(clazz.getModifiers()))
.map(DiscoverySelectors::selectClass)
.collect(Collectors.toList());
enclosed
? new ArrayList<>()
: Arrays.stream(testClass.getDeclaredClasses())
.filter(clazz -> Modifier.isStatic(clazz.getModifiers()))
.map(DiscoverySelectors::selectClass)
.collect(Collectors.toList());

classSelectors.add(DiscoverySelectors.selectClass(testClassName));

LauncherDiscoveryRequestBuilder request =
LauncherDiscoveryRequestBuilder.request()
.selectors(classSelectors)
.configurationParameter(LauncherConstants.CAPTURE_STDERR_PROPERTY_NAME, "true")
.configurationParameter(LauncherConstants.CAPTURE_STDOUT_PROPERTY_NAME, "true")
.configurationParameter(
Constants.EXTENSIONS_AUTODETECTION_ENABLED_PROPERTY_NAME, "true")
.filters(getFilters().toArray(new Filter[0]));
LauncherDiscoveryRequestBuilder.request()
.selectors(classSelectors)
.configurationParameter(LauncherConstants.CAPTURE_STDERR_PROPERTY_NAME, "true")
.configurationParameter(LauncherConstants.CAPTURE_STDOUT_PROPERTY_NAME, "true")
.configurationParameter(
Constants.EXTENSIONS_AUTODETECTION_ENABLED_PROPERTY_NAME, "true")
.filters(getFilters().toArray(new Filter[0]));

return request.build();
}
Expand All @@ -128,13 +128,13 @@ protected List<Filter<?>> getFilters() {
}

List<String> includeEngines =
System.getProperty("JUNIT5_INCLUDE_ENGINES") == null
? null
: Arrays.asList(System.getProperty("JUNIT5_INCLUDE_ENGINES").split(","));
System.getProperty("JUNIT5_INCLUDE_ENGINES") == null
? null
: Arrays.asList(System.getProperty("JUNIT5_INCLUDE_ENGINES").split(","));
List<String> excludeEngines =
System.getProperty("JUNIT5_EXCLUDE_ENGINES") == null
? null
: Arrays.asList(System.getProperty("JUNIT5_EXCLUDE_ENGINES").split(","));
System.getProperty("JUNIT5_EXCLUDE_ENGINES") == null
? null
: Arrays.asList(System.getProperty("JUNIT5_EXCLUDE_ENGINES").split(","));
if (includeEngines != null) {
filters.add(includeEngines(includeEngines));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void run() {

protected RunsTest getRunner() throws ReflectiveOperationException {
Constructor<? extends RunsTest> constructor =
Class.forName(JUNIT5_RUNNER_CLASS).asSubclass(RunsTest.class).getConstructor();
Class.forName(JUNIT5_RUNNER_CLASS).asSubclass(RunsTest.class).getConstructor();
return constructor.newInstance();
}

Expand Down

0 comments on commit 2495f44

Please sign in to comment.