directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r940091 - /directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/ssl/StartTlsIT.java
Date Sat, 01 May 2010 18:31:36 GMT
Author: seelmann
Date: Sat May  1 18:31:36 2010
New Revision: 940091

URL: http://svn.apache.org/viewvc?rev=940091&view=rev
Log:
No need to check exact result order

Modified:
    directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/ssl/StartTlsIT.java

Modified: directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/ssl/StartTlsIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/ssl/StartTlsIT.java?rev=940091&r1=940090&r2=940091&view=diff
==============================================================================
--- directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/ssl/StartTlsIT.java
(original)
+++ directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/ssl/StartTlsIT.java
Sat May  1 18:31:36 2010
@@ -20,6 +20,7 @@
 package org.apache.directory.server.ssl;
 
 
+import static junit.framework.Assert.assertTrue;
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
 
@@ -170,17 +171,18 @@ public class StartTlsIT extends Abstract
             }
         }
         ne.close();
-        
-        assertEquals( "ou=system", results.get( 0 ) );
-        assertEquals( "uid=admin,ou=system", results.get( 1 ) );
-        assertEquals( "ou=users,ou=system", results.get( 2 ) );
-        assertEquals( "ou=groups,ou=system", results.get( 3 ) );
-        assertEquals( "cn=Administrators,ou=groups,ou=system", results.get( 4 ) );
-        assertEquals( "ou=configuration,ou=system", results.get( 5 ) );
-        assertEquals( "ou=partitions,ou=configuration,ou=system", results.get( 6 ) );
-        assertEquals( "ou=services,ou=configuration,ou=system", results.get( 7 ) );
-        assertEquals( "ou=interceptors,ou=configuration,ou=system", results.get( 8 ) );
-        assertEquals( "prefNodeName=sysPrefRoot,ou=system", results.get( 9 ) );
+
+        assertEquals( 10, results.size() );
+        assertTrue( "Results must contain ou=system", results.contains( "ou=system" ) );
+        assertTrue( "Results must contain uid=admin,ou=system", results.contains( "uid=admin,ou=system"
) );
+        assertTrue( "Results must contain ou=users,ou=system", results.contains( "ou=users,ou=system"
) );
+        assertTrue( "Results must contain ou=groups,ou=system", results.contains( "ou=groups,ou=system"
) );
+        assertTrue( "Results must contain cn=Administrators,ou=groups,ou=system", results.contains(
"cn=Administrators,ou=groups,ou=system" ) );
+        assertTrue( "Results must contain ou=configuration,ou=system", results.contains(
"ou=configuration,ou=system" ) );
+        assertTrue( "Results must contain ou=partitions,ou=configuration,ou=system", results.contains(
"ou=partitions,ou=configuration,ou=system" ) );
+        assertTrue( "Results must contain ou=services,ou=configuration,ou=system", results.contains(
"ou=services,ou=configuration,ou=system" ) );
+        assertTrue( "Results must contain ou=interceptors,ou=configuration,ou=system", results.contains(
"ou=interceptors,ou=configuration,ou=system" ) );
+        assertTrue( "Results must contain prefNodeName=sysPrefRoot,ou=system", results.contains(
"prefNodeName=sysPrefRoot,ou=system" ) );
     }
     
     



Mime
View raw message