public class CEEnvironmentProcessor extends Object
Temporary class to handle @Template, @Templates, and @OpenShiftResource annotations on test classes. Eventually, these will be migrated to Cube types, at which point this will delegate to those for setup/teardown (via StartCube/StopCube).
| Modifier and Type | Class and Description |
|---|---|
static interface |
CEEnvironmentProcessor.TemplateDetails |
| Constructor and Description |
|---|
CEEnvironmentProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
createEnvironment(org.jboss.arquillian.test.spi.event.suite.BeforeClass event,
OpenShiftAdapter client,
CubeOpenShiftConfiguration cubeOpenShiftConfiguration)
Create the environment as specified by @Template or
arq.extension.ce-cube.openshift.template.* properties.
|
void |
createOpenShiftResource(org.jboss.arquillian.test.spi.event.suite.Before event,
OpenShiftAdapter client,
CubeOpenShiftConfiguration cubeOpenShiftConfiguration) |
void |
deleteEnvironment(org.jboss.arquillian.test.spi.event.suite.AfterClass event,
OpenShiftAdapter client,
CubeOpenShiftConfiguration configuration)
Tear down the environment.
|
void |
deleteOpenShiftResource(org.jboss.arquillian.test.spi.event.suite.After event,
OpenShiftAdapter client,
CubeOpenShiftConfiguration cubeOpenShiftConfiguration) |
public void createEnvironment(@Observes(precedence=10)
org.jboss.arquillian.test.spi.event.suite.BeforeClass event,
OpenShiftAdapter client,
CubeOpenShiftConfiguration cubeOpenShiftConfiguration)
In the future, this might be handled by starting application Cube objects, e.g. CreateCube(application), StartCube(application)
Needs to fire before the containers are started.
public void createOpenShiftResource(@Observes(precedence=10)
org.jboss.arquillian.test.spi.event.suite.Before event,
OpenShiftAdapter client,
CubeOpenShiftConfiguration cubeOpenShiftConfiguration)
public void deleteOpenShiftResource(@Observes(precedence=-10)
org.jboss.arquillian.test.spi.event.suite.After event,
OpenShiftAdapter client,
CubeOpenShiftConfiguration cubeOpenShiftConfiguration)
throws Exception
Exceptionpublic void deleteEnvironment(@Observes(precedence=-10)
org.jboss.arquillian.test.spi.event.suite.AfterClass event,
OpenShiftAdapter client,
CubeOpenShiftConfiguration configuration)
throws Exception
In the future, this might be handled by stopping application Cube objects, e.g. StopCube(application), DestroyCube(application).
ExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.