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();
}
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();
}
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();
}
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);
}
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();
}
Aggregations