directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r692925 - /directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/bind/SimpleBindIT.java
Date Sun, 07 Sep 2008 19:52:55 GMT
Author: akarasulu
Date: Sun Sep  7 12:52:54 2008
New Revision: 692925

URL: http://svn.apache.org/viewvc?rev=692925&view=rev
Log:
tests in bad form - still in bad for but making them less prone to error: checking strings
of error messages is a really crappy way to setup tests!

Modified:
    directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/bind/SimpleBindIT.java

Modified: directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/bind/SimpleBindIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/bind/SimpleBindIT.java?rev=692925&r1=692924&r2=692925&view=diff
==============================================================================
--- directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/bind/SimpleBindIT.java
(original)
+++ directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/bind/SimpleBindIT.java
Sun Sep  7 12:52:54 2008
@@ -171,7 +171,7 @@
         catch ( AuthenticationException ae )
         {
     		// Error code 49 : LDAP_INVALID_CREDENTIALS
-            assertTrue( ae.getMessage().startsWith( "[LDAP: error code 49 - Bind failed"
) );
+            assertTrue( ae.getMessage().contains( "error code 49" ) );
         }
         catch ( NamingException e )
         {
@@ -321,7 +321,7 @@
     	catch ( OperationNotSupportedException onse )
     	{
     		// Error code 53 : LDAP_UNWILLING_TO_PERFORM
-    		assertTrue( onse.getMessage().startsWith( "[LDAP: error code 53 - Bind failed" ) );
+    		assertTrue( onse.getMessage().contains( "error code 53" ) );
     	}
     	catch ( NamingException ne )
     	{



Mime
View raw message