Class CEEnvironmentProcessor
java.lang.Object
org.arquillian.cube.openshift.impl.CEEnvironmentProcessor
CEEnvironmentProcessor
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).
- Author:
- Rob Cernich
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateEnvironment(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.voidcreateOpenShiftResource(org.jboss.arquillian.test.spi.event.suite.Before event, OpenShiftAdapter client, CubeOpenShiftConfiguration cubeOpenShiftConfiguration) voiddeleteEnvironment(org.jboss.arquillian.test.spi.event.suite.AfterClass event, OpenShiftAdapter client, CubeOpenShiftConfiguration configuration) Tear down the environment.voiddeleteOpenShiftResource(org.jboss.arquillian.test.spi.event.suite.After event, OpenShiftAdapter client, CubeOpenShiftConfiguration cubeOpenShiftConfiguration)
-
Constructor Details
-
CEEnvironmentProcessor
public CEEnvironmentProcessor()
-
-
Method Details
-
createEnvironment
public void createEnvironment(@Observes(precedence=10) 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.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.
-
createOpenShiftResource
public void createOpenShiftResource(@Observes(precedence=10) org.jboss.arquillian.test.spi.event.suite.Before event, OpenShiftAdapter client, CubeOpenShiftConfiguration cubeOpenShiftConfiguration) -
deleteOpenShiftResource
public void deleteOpenShiftResource(@Observes(precedence=-10) org.jboss.arquillian.test.spi.event.suite.After event, OpenShiftAdapter client, CubeOpenShiftConfiguration cubeOpenShiftConfiguration) throws Exception - Throws:
Exception
-
deleteEnvironment
public void deleteEnvironment(@Observes(precedence=-10) org.jboss.arquillian.test.spi.event.suite.AfterClass event, OpenShiftAdapter client, CubeOpenShiftConfiguration configuration) throws Exception Tear down the environment.In the future, this might be handled by stopping application Cube objects, e.g. StopCube(application), DestroyCube(application).
- Throws:
Exception
-