[jboss-cvs] JBossAS SVN: r81887 - trunk/testsuite/src/main/org/jboss/test/profileservice/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Dec 1 06:05:13 EST 2008
Author: emuckenhuber
Date: 2008-12-01 06:05:13 -0500 (Mon, 01 Dec 2008)
New Revision: 81887
Modified:
trunk/testsuite/src/main/org/jboss/test/profileservice/test/SecurityManagedObjectsTestCase.java
Log:
update testCase to check for state information
Modified: trunk/testsuite/src/main/org/jboss/test/profileservice/test/SecurityManagedObjectsTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/profileservice/test/SecurityManagedObjectsTestCase.java 2008-12-01 11:02:39 UTC (rev 81886)
+++ trunk/testsuite/src/main/org/jboss/test/profileservice/test/SecurityManagedObjectsTestCase.java 2008-12-01 11:05:13 UTC (rev 81887)
@@ -96,10 +96,11 @@
// verify that the component has the expected properties.
Map<String, ManagedProperty> properties = component.getProperties();
assertNotNull(properties);
- assertEquals("Unexpected number of properties", 3, properties.size());
+ assertEquals("Unexpected number of properties", 4, properties.size());
assertTrue("Missing expected property: loginConfig", properties.containsKey("loginConfig"));
assertTrue("Missing expected property: mbeanServer", properties.containsKey("mbeanServer"));
assertTrue("Missing expected property: defaultLoginConfig", properties.containsKey("defaultLoginConfig"));
+ assertTrue("Missing expected property: state", properties.containsKey("state"));
// verify that the component has the expected operations.
String[] expectedOperations = {"startService", "stopService", "pushLoginConfig", "popLoginConfig"};
@@ -132,9 +133,10 @@
// verify that the component has the expected properties.
Map<String, ManagedProperty> properties = component.getProperties();
assertNotNull(properties);
- assertEquals("Unexpected number of properties", 2, properties.size());
+ assertEquals("Unexpected number of properties", 3, properties.size());
assertTrue("Missing expected property: configURL", properties.containsKey("configURL"));
assertTrue("Missing expected property: validateDTD", properties.containsKey("validateDTD"));
+ assertTrue("Missing expected property: state", properties.containsKey("state"));
// verify that the component has the expected operations.
String[] expectedOperations = {"loadConfig", "setConfigResource", "displayAppConfig", "addApplicationPolicy",
@@ -168,8 +170,9 @@
// verify that the component has the expected properties.
Map<String, ManagedProperty> properties = component.getProperties();
assertNotNull(properties);
- assertEquals("Unexpected number of properties", 1, properties.size());
+ assertEquals("Unexpected number of properties", 2, properties.size());
assertTrue("Missing expected property: securityManagement", properties.containsKey("securityManagement"));
+ assertTrue("Missing expected property: state", properties.containsKey("state"));
// this component should have 2 createSubject operations - one with no args and one with a String arg.
boolean foundNoArgOperation = false;
@@ -215,9 +218,10 @@
// verify that the component has the expected properties.
Map<String, ManagedProperty> properties = component.getProperties();
assertNotNull(properties);
- assertEquals("Unexpected number of properties", 2, properties.size());
+ assertEquals("Unexpected number of properties", 3, properties.size());
assertTrue("Missing expected property: baseContext", properties.containsKey("baseContext"));
assertTrue("Missing expected property: factoryName", properties.containsKey("factoryName"));
+ assertTrue("Missing expected property: state", properties.containsKey("state"));
// verify that the component has the expected operations.
Set<ManagedOperation> operations = component.getOperations();
@@ -242,12 +246,13 @@
// verify that the component has the expected managed properties.
Map<String, ManagedProperty> properties = component.getProperties();
assertNotNull(properties);
- assertEquals("Unexpected number of properties", 5, properties.size());
+ assertEquals("Unexpected number of properties", 6, properties.size());
assertTrue("Missing expected property: authenticationMgrClass", properties.containsKey("authenticationMgrClass"));
assertTrue("Missing expected property: authorizationMgrClass", properties.containsKey("authorizationMgrClass"));
assertTrue("Missing expected property: auditMgrClass", properties.containsKey("auditMgrClass"));
assertTrue("Missing expected property: identityTrustMgrClass", properties.containsKey("identityTrustMgrClass"));
assertTrue("Missing expected property: mappingMgrClass", properties.containsKey("mappingMgrClass"));
+ assertTrue("Missing expected property: state", properties.containsKey("state"));
// verify that the component has the expected managed operations.
String[] opsWithStringParam = {"getAuthenticationManager", "getAuthorizationManager", "getAuditManager",
@@ -315,8 +320,9 @@
// verify that the component has the expected managed properties.
Map<String, ManagedProperty> properties = component.getProperties();
assertNotNull(properties);
- assertEquals("Unexpected number of properties", 12, properties.size());
+ assertEquals("Unexpected number of properties", 13, properties.size());
assertTrue("Missing expected property: securityDomain", properties.containsKey("securityDomain"));
+ assertTrue("Missing expected property: state", properties.containsKey("state"));
// keystore and truststore configuration properties.
assertTrue("Missing expected property: keyStoreType", properties.containsKey("keyStoreType"));
assertTrue("Missing expected property: keyStoreURL", properties.containsKey("keyStoreURL"));
More information about the jboss-cvs-commits
mailing list