directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r925183 - /directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/exception/ExceptionServiceIT.java
Date Fri, 19 Mar 2010 11:45:21 GMT
Author: kayyagari
Date: Fri Mar 19 11:45:21 2010
New Revision: 925183

URL: http://svn.apache.org/viewvc?rev=925183&view=rev
Log:
fixed the test case 

Modified:
    directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/exception/ExceptionServiceIT.java

Modified: directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/exception/ExceptionServiceIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/exception/ExceptionServiceIT.java?rev=925183&r1=925182&r2=925183&view=diff
==============================================================================
--- directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/exception/ExceptionServiceIT.java
(original)
+++ directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/exception/ExceptionServiceIT.java
Fri Mar 19 11:45:21 2010
@@ -399,11 +399,11 @@ public class ExceptionServiceIT extends 
         connection.add( entry );
 
         Entry aliasChild = new DefaultClientEntry( new DN( "ou=blah,cn=toanother,ou=system"
) );
-        entry.add( SchemaConstants.OBJECT_CLASS_AT, "organizationalUnit" );
-        entry.add( SchemaConstants.OU_AT, "blah" );
+        aliasChild.add( SchemaConstants.OBJECT_CLASS_AT, "organizationalUnit" );
+        aliasChild.add( SchemaConstants.OU_AT, "blah" );
 
         AddResponse resp = connection.add( aliasChild );
-        assertEquals( ResultCodeEnum.OBJECT_CLASS_VIOLATION, resp.getLdapResult().getResultCode()
);
+        assertEquals( ResultCodeEnum.ALIAS_PROBLEM, resp.getLdapResult().getResultCode()
);
     }
 
 



Mime
View raw message