[jboss-svn-commits] JBoss Common SVN: r2463 - jbossxb-builder/trunk/src/test/java/org/jboss/test/ejb.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Jul 25 10:45:56 EDT 2007


Author: alex.loubyansky at jboss.com
Date: 2007-07-25 10:45:56 -0400 (Wed, 25 Jul 2007)
New Revision: 2463

Modified:
   jbossxb-builder/trunk/src/test/java/org/jboss/test/ejb/AbstractEJBEverythingTest.java
Log:
roles are Set

Modified: jbossxb-builder/trunk/src/test/java/org/jboss/test/ejb/AbstractEJBEverythingTest.java
===================================================================
--- jbossxb-builder/trunk/src/test/java/org/jboss/test/ejb/AbstractEJBEverythingTest.java	2007-07-25 14:33:46 UTC (rev 2462)
+++ jbossxb-builder/trunk/src/test/java/org/jboss/test/ejb/AbstractEJBEverythingTest.java	2007-07-25 14:45:56 UTC (rev 2463)
@@ -833,11 +833,10 @@
    {
       assertNotNull(roles);
       assertEquals(size, roles.size());
-      int count = 1;
-      for (String roleName : roles)
+      int count = 0;
+      while (++count <= roles.size())
       {
-         assertEquals(prefix + "RoleName" + count, roleName);
-         ++count;
+         assertTrue(roles.contains(prefix + "RoleName" + count));
       }
    }
 




More information about the jboss-svn-commits mailing list