use of org.junit.platform.engine.ExecutionRequest in project junit5 by junit-team.
the class HierarchicalTestExecutorTests method init.
@BeforeEach
void init() {
ExecutionRequest request = new ExecutionRequest(root, listener, null);
executor = new MyExecutor(request, rootContext);
}
use of org.junit.platform.engine.ExecutionRequest in project junit5 by junit-team.
the class ExpectedExceptionSupportTests method executeTestsForClass.
private ExecutionEventRecorder executeTestsForClass(Class<?> testClass) {
LauncherDiscoveryRequest request = request().selectors(selectClass(testClass)).build();
JupiterTestEngine engine = new JupiterTestEngine();
TestDescriptor testDescriptor = engine.discover(request, UniqueId.forEngine(engine.getId()));
ExecutionEventRecorder eventRecorder = new ExecutionEventRecorder();
engine.execute(new ExecutionRequest(testDescriptor, eventRecorder, request.getConfigurationParameters()));
return eventRecorder;
}
Aggregations