[jboss-cvs] JBossAS SVN: r90533 - 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 23 11:52:01 EDT 2009
Author: scott.stark at jboss.org
Date: 2009-06-23 11:52:01 -0400 (Tue, 23 Jun 2009)
New Revision: 90533
Modified:
branches/Branch_5_x/testsuite/src/main/org/jboss/test/profileservice/testsecure/ProfileServiceUnitTestCase.java
Log:
JBAS-7044, build a serializable set for the getComponentTypes
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-23 15:50:43 UTC (rev 90532)
+++ branches/Branch_5_x/testsuite/src/main/org/jboss/test/profileservice/testsecure/ProfileServiceUnitTestCase.java 2009-06-23 15:52:01 UTC (rev 90533)
@@ -126,6 +126,22 @@
logout();
}
+ /**
+ * Basic test of accessing the ProfileService and checking the
+ * available component types.
+ */
+ public void testComponentTypes()
+ throws Exception
+ {
+ login(PROFILE_SERVICE_PRINCIPAL, PROFILE_SERVICE_CREDENTIALS.toCharArray());
+ ProfileService ps = getProfileService();
+ ManagementView mgtView = ps.getViewManager();
+ mgtView.load();
+ Set<ComponentType> types = mgtView.getComponentTypes();
+ log.info("getComponentTypes: "+types);
+ assertTrue("types.size() > 0", types.size() > 0);
+ logout();
+ }
/**
* Try to access a method with an invalid login
More information about the jboss-cvs-commits
mailing list