[jboss-cvs] JBossAS SVN: r90032 - branches/Branch_5_x/testsuite/src/main/org/jboss/test/profileservice/testsecure.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Jun 9 22:11:28 EDT 2009
Author: scott.stark at jboss.org
Date: 2009-06-09 22:11:28 -0400 (Tue, 09 Jun 2009)
New Revision: 90032
Modified:
branches/Branch_5_x/testsuite/src/main/org/jboss/test/profileservice/testsecure/ProfileServiceUnitTestCase.java
Log:
JBAS-6982, include an admin/admin user
Modified: branches/Branch_5_x/testsuite/src/main/org/jboss/test/profileservice/testsecure/ProfileServiceUnitTestCase.java
===================================================================
--- branches/Branch_5_x/testsuite/src/main/org/jboss/test/profileservice/testsecure/ProfileServiceUnitTestCase.java 2009-06-10 02:04:17 UTC (rev 90031)
+++ branches/Branch_5_x/testsuite/src/main/org/jboss/test/profileservice/testsecure/ProfileServiceUnitTestCase.java 2009-06-10 02:11:28 UTC (rev 90032)
@@ -187,8 +187,30 @@
assertEquals("There is 1 DefaultDS ManagedComponent", 1, 1);
logout();
}
+ /**
+ * Validate that there is only 1 DefaultDS ManagedComponent
+ * @throws Exception
+ */
+ public void testDefaultDSComponentCountUsingAdminAdmin()
+ throws Exception
+ {
+ login("admin", "admin".toCharArray());
+ ManagementView mgtView = getManagementView();
+ ComponentType type = new ComponentType("DataSource", "LocalTx");
+ Set<ManagedComponent> comps = mgtView.getComponentsForType(type);
+ int count = 0;
+ for (ManagedComponent comp : comps)
+ {
+ String cname = comp.getName();
+ if( cname.endsWith("DefaultDS") )
+ {
+ count ++;
+ }
+ }
+ assertEquals("There is 1 DefaultDS ManagedComponent", 1, 1);
+ logout();
+ }
-
// Private and protected
@Override
More information about the jboss-cvs-commits
mailing list