Package org.wildfly.test.security.common
Class AbstractElytronSetupTask
java.lang.Object
org.wildfly.test.security.common.AbstractElytronSetupTask
- All Implemented Interfaces:
org.jboss.as.arquillian.api.ServerSetupTask
public abstract class AbstractElytronSetupTask
extends Object
implements org.jboss.as.arquillian.api.ServerSetupTask
Abstract parent for server setup tasks configuring Elytron. Implementing classes overrides
getConfigurableElements()
method to provide configured on which this task will call ConfigurableElement.create(CLIWrapper).- Author:
- Josef Cacek
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ConfigurableElement[]Returns not-nullarray of configurations to be created by this server setup task.voidprotected voidsetup(org.jboss.as.controller.client.ModelControllerClient modelControllerClient) Creates configuration elements (provided by implementation ofgetConfigurableElements()method) and callsConfigurableElement.create(CLIWrapper)for them.voidprotected voidtearDown(org.jboss.as.controller.client.ModelControllerClient modelControllerClient) Reverts configuration changes done bysetup(ModelControllerClient)method - i.e. callsConfigurableElement.remove(CLIWrapper)method on instances provided bygetConfigurableElements()(in reverse order).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.as.arquillian.api.ServerSetupTask
executeOperation, executeOperation, executeOperation, executeOperation
-
Constructor Details
-
AbstractElytronSetupTask
public AbstractElytronSetupTask()
-
-
Method Details
-
setup
public void setup(org.jboss.as.arquillian.container.ManagementClient managementClient, String containerId) throws Exception - Specified by:
setupin interfaceorg.jboss.as.arquillian.api.ServerSetupTask- Throws:
Exception
-
tearDown
public void tearDown(org.jboss.as.arquillian.container.ManagementClient managementClient, String containerId) throws Exception - Specified by:
tearDownin interfaceorg.jboss.as.arquillian.api.ServerSetupTask- Throws:
Exception
-
setup
protected void setup(org.jboss.as.controller.client.ModelControllerClient modelControllerClient) throws Exception Creates configuration elements (provided by implementation ofgetConfigurableElements()method) and callsConfigurableElement.create(CLIWrapper)for them.- Throws:
Exception
-
tearDown
protected void tearDown(org.jboss.as.controller.client.ModelControllerClient modelControllerClient) throws Exception Reverts configuration changes done bysetup(ModelControllerClient)method - i.e. callsConfigurableElement.remove(CLIWrapper)method on instances provided bygetConfigurableElements()(in reverse order).- Throws:
Exception
-
getConfigurableElements
Returns not-nullarray of configurations to be created by this server setup task.- Returns:
- not-
nullarray of instances to be created
-