Search in sources :

Example 36 with BeforeClass

use of org.testng.annotations.BeforeClass in project OpenAM by OpenRock.

the class RealmRemovedTest method setup.

@BeforeClass
public void setup() throws Exception {
    if (!migrated) {
        return;
    }
    OrganizationConfigManager ocm = new OrganizationConfigManager(adminToken, "/");
    String subRealm = SUB_REALM1.substring(1);
    ocm.createSubOrganization(subRealm, Collections.EMPTY_MAP);
    subRealm = SUB_REALM2.substring(1);
    ocm.createSubOrganization(subRealm, Collections.EMPTY_MAP);
    createApplicationPrivilege();
}
Also used : OrganizationConfigManager(com.sun.identity.sm.OrganizationConfigManager) BeforeClass(org.testng.annotations.BeforeClass)

Example 37 with BeforeClass

use of org.testng.annotations.BeforeClass in project OpenAM by OpenRock.

the class SigProviderTest method setUp.

@BeforeClass
public void setUp() {
    // The keystore properties required to bootstrap this class are setup in the POM
    keyProvider = new AMKeyProvider();
    sigProvider = SigManager.getSigInstance();
}
Also used : AMKeyProvider(org.forgerock.openam.utils.AMKeyProvider) BeforeClass(org.testng.annotations.BeforeClass)

Example 38 with BeforeClass

use of org.testng.annotations.BeforeClass in project OpenAM by OpenRock.

the class HandlerProviderTest method setupClass.

@BeforeClass
public void setupClass() {
    initMocks(this);
    key = Key.get(Handler.class);
    handlerReturnCount = new AtomicInteger();
}
Also used : AtomicInteger(java.util.concurrent.atomic.AtomicInteger) Handler(org.forgerock.http.Handler) BeforeClass(org.testng.annotations.BeforeClass)

Example 39 with BeforeClass

use of org.testng.annotations.BeforeClass in project OpenAM by OpenRock.

the class DeleteApplicationsTest method setup.

@BeforeClass
@Override
public void setup() throws Exception {
    super.setup();
    Application appl = ApplicationManager.newApplication("/", APPL_NAME, ApplicationTypeManager.getAppplicationType(adminSubject, ApplicationTypeManager.URL_APPLICATION_TYPE_NAME));
    Map<String, Boolean> actions = new HashMap<String, Boolean>();
    actions.put("GET", true);
    appl.setActions(actions);
    appl.setEntitlementCombiner(DenyOverride.class);
    ApplicationManager.saveApplication(adminSubject, "/", appl);
}
Also used : HashMap(java.util.HashMap) Application(com.sun.identity.entitlement.Application) BeforeClass(org.testng.annotations.BeforeClass) DenyOverride(com.sun.identity.entitlement.DenyOverride)

Example 40 with BeforeClass

use of org.testng.annotations.BeforeClass in project OpenAM by OpenRock.

the class CLITestImpl method setup.

@BeforeClass
public void setup() throws Exception {
    Map<String, Object> env = new HashMap<String, Object>();
    env.put(CLIConstants.SYS_PROPERTY_COMMAND_NAME, "testclifw");
    env.put(CLIConstants.SYS_PROPERTY_DEFINITION_FILES, "com.sun.identity.cli.AccessManager");
    env.put(CLIConstants.SYS_PROPERTY_OUTPUT_WRITER, outputWriter);
    cmdManager = new CommandManager(env);
    beforeClass();
}
Also used : CommandManager(com.sun.identity.cli.CommandManager) HashMap(java.util.HashMap) BeforeClass(org.testng.annotations.BeforeClass)

Aggregations

BeforeClass (org.testng.annotations.BeforeClass)1186 Series (com.axibase.tsd.api.model.series.Series)178 File (java.io.File)157 ArrayList (java.util.ArrayList)78 HashMap (java.util.HashMap)43 ClusterControllerManager (org.apache.helix.integration.manager.ClusterControllerManager)37 Injector (com.google.inject.Injector)36 Properties (java.util.Properties)35 Path (org.apache.hadoop.fs.Path)33 ClusterSetup (org.apache.helix.tools.ClusterSetup)33 Configuration (org.apache.hadoop.conf.Configuration)31 BigDecimal (java.math.BigDecimal)29 URL (java.net.URL)28 MockParticipantManager (org.apache.helix.integration.manager.MockParticipantManager)27 Date (java.util.Date)26 Server (org.eclipse.jetty.server.Server)25 ServerConnector (org.eclipse.jetty.server.ServerConnector)25 ODatabaseDocumentTx (com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx)23 IOException (java.io.IOException)23 Path (java.nio.file.Path)23