return;
}
}
final TestSelector selector = getTestSelector(request);
final Renderer renderer = rendererSelector.getRenderer(selector);
if(renderer == null) {
throw new ServletException("No Renderer found for " + selector);
}
log.debug("GET request: {}", selector);
renderer.setup(response, getClass().getSimpleName());
renderer.info("info", "Test selector: " + selector);
// Any test classes?
final List<String> testNames = getTestNames(selector, forceReload);
if(testNames.isEmpty()) {
renderer.info(
"warning",
"No test classes found for selector " + selector
+ ", check the requirements of the active " +
"TestsProvider services for how to supply tests."
);
} else {
try {
testsManager.listTests(testNames, renderer);
final String postPath = getTestExecutionPath(request, selector, renderer.getExtension());
renderer.link("Execute these tests", postPath, "POST");
} catch(Exception e) {
throw new ServletException(e);
}
}
renderer.cleanup();
}