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 Details

    • AbstractElytronSetupTask

      public AbstractElytronSetupTask()
  • Method Details

    • setup

      public void setup(org.jboss.as.arquillian.container.ManagementClient managementClient, String containerId) throws Exception
      Specified by:
      setup in interface org.jboss.as.arquillian.api.ServerSetupTask
      Throws:
      Exception
    • tearDown

      public void tearDown(org.jboss.as.arquillian.container.ManagementClient managementClient, String containerId) throws Exception
      Specified by:
      tearDown in interface org.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 of getConfigurableElements() method) and calls ConfigurableElement.create(CLIWrapper) for them.
      Throws:
      Exception
    • tearDown

      protected void tearDown(org.jboss.as.controller.client.ModelControllerClient modelControllerClient) throws Exception
      Reverts configuration changes done by setup(ModelControllerClient) method - i.e. calls ConfigurableElement.remove(CLIWrapper) method on instances provided by getConfigurableElements() (in reverse order).
      Throws:
      Exception
    • getConfigurableElements

      protected abstract ConfigurableElement[] getConfigurableElements()
      Returns not-null array of configurations to be created by this server setup task.
      Returns:
      not-null array of instances to be created