Author: elecharny
Date: Thu Dec 3 02:35:10 2009
New Revision: 886660
URL: http://svn.apache.org/viewvc?rev=886660&view=rev
Log:
Added a new test
Modified:
directory/shared/branches/shared-schema/ldap-schema-loader/src/test/java/org/apache/directory/server/schema/SchemaManagerTest.java
Modified: directory/shared/branches/shared-schema/ldap-schema-loader/src/test/java/org/apache/directory/server/schema/SchemaManagerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/ldap-schema-loader/src/test/java/org/apache/directory/server/schema/SchemaManagerTest.java?rev=886660&r1=886659&r2=886660&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/ldap-schema-loader/src/test/java/org/apache/directory/server/schema/SchemaManagerTest.java
(original)
+++ directory/shared/branches/shared-schema/ldap-schema-loader/src/test/java/org/apache/directory/server/schema/SchemaManagerTest.java
Thu Dec 3 02:35:10 2009
@@ -273,6 +273,27 @@
/**
+ * Try to inject an AttributeType which is Collective, and userApplication AT
+ */
+ @Test
+ public void testAddAttributeTypeCollectiveUser() throws Exception
+ {
+ SchemaManager schemaManager = loadSystem();
+
+ AttributeType attributeType = new AttributeType( "1.1.0" );
+ attributeType.setEqualityOid( "2.5.13.1" );
+ attributeType.setOrderingOid( null );
+ attributeType.setSubstringOid( null );
+ attributeType.setSyntaxOid( "1.3.6.1.4.1.1466.115.121.1.26" );
+ attributeType.setUsage( UsageEnum.USER_APPLICATIONS );
+ attributeType.setCollective( true );
+
+ // It should not fail
+ schemaManager.add( attributeType );
+ }
+
+
+ /**
* Try to inject an AttributeType which is Collective, but an operational AT
*/
@Test(expected = LdapOperationNotSupportedException.class)
|