directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1083252 - /directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/model/name/SchemaAwareRdnTest.java
Date Sat, 19 Mar 2011 19:19:26 GMT
Author: elecharny
Date: Sat Mar 19 19:19:26 2011
New Revision: 1083252

URL: http://svn.apache.org/viewvc?rev=1083252&view=rev
Log:
Adding some test for the isSchemaAware method

Modified:
    directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/model/name/SchemaAwareRdnTest.java

Modified: directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/model/name/SchemaAwareRdnTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/model/name/SchemaAwareRdnTest.java?rev=1083252&r1=1083251&r2=1083252&view=diff
==============================================================================
--- directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/model/name/SchemaAwareRdnTest.java
(original)
+++ directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/model/name/SchemaAwareRdnTest.java
Sat Mar 19 19:19:26 2011
@@ -1224,4 +1224,17 @@ public class SchemaAwareRdnTest
         
         assertEquals( " CN = b + SN = d ", rdn.getName() );
     }
+    
+    
+    @Test
+    public void testSchemaAware() throws LdapException
+    {
+        Rdn rdn = new Rdn( "cn=John" );
+        
+        assertFalse( rdn.isSchemaAware() );
+
+        rdn.applySchemaManager( schemaManager );
+
+        assertTrue( rdn.isSchemaAware() );
+    }
 }



Mime
View raw message