use of org.jboss.arquillian.container.spi.event.StartSuiteContainers in project keycloak by keycloak.
the class KeycloakContainerEventsController method execute.
@Override
public void execute(BeforeClass event) {
if (event.getTestClass().isAnnotationPresent(RestartContainer.class)) {
// stop executing the test - remote container cannot be restarted
ContainerAssume.assumeNotAuthServerRemote();
RestartContainer restartContainer = event.getTestClass().getAnnotation(RestartContainer.class);
beforeOriginalContainerStop(restartContainer);
container.fire(new StopManualContainers());
container.fire(new StopSuiteContainers());
beforeNewContainerStart(restartContainer);
container.fire(new StartClassContainers());
container.fire(new StartSuiteContainers());
}
super.execute(event);
}
Aggregations