You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2009/11/17 18:35:57 UTC

svn commit: r881397 - /directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/registries/AttributeTypeRegistryTest.java

Author: elecharny
Date: Tue Nov 17 17:35:57 2009
New Revision: 881397

URL: http://svn.apache.org/viewvc?rev=881397&view=rev
Log:
Remove the clone test

Modified:
    directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/registries/AttributeTypeRegistryTest.java

Modified: directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/registries/AttributeTypeRegistryTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/registries/AttributeTypeRegistryTest.java?rev=881397&r1=881396&r2=881397&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/registries/AttributeTypeRegistryTest.java (original)
+++ directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/registries/AttributeTypeRegistryTest.java Tue Nov 17 17:35:57 2009
@@ -44,7 +44,7 @@
     @Before
     public void setup()
     {
-        atRegistry = new DefaultAttributeTypeRegistry( new OidRegistry() );
+        atRegistry = new DefaultAttributeTypeRegistry();
     }
     
     
@@ -96,38 +96,4 @@
             assertTrue( true );
         }
     }
-    
-    
-    @Test
-    public void testClone() throws Exception
-    {
-        AttributeType at0 = new AttributeType( "1.1" );
-        at0.addName( "t", "test", "Test", "T" );
-        
-        atRegistry.register( at0 );
-        
-        AttributeType at1 = new AttributeType( "1.2" );
-        at1.addName( "u", "unit", "Unit", "U" );
-
-        atRegistry.register( at1 );
-        
-        // Clone the ATRegistry
-        AttributeTypeRegistry clone = (AttributeTypeRegistry)atRegistry.clone();
-        
-        assertEquals( at0, clone.lookup( "1.1" ) );
-        assertEquals( at1, clone.lookup( "1.2" ) );
-        
-        atRegistry.unregister( "1.1" );
-        assertFalse( atRegistry.contains( "1.1" ) );
-        assertTrue( clone.contains( "1.1" ) );
-        
-        AttributeType at = atRegistry.lookup( "1.2" );
-        at.setOid( "2.2" );
-        
-        at = atRegistry.lookup( "1.2" );
-        assertEquals( "2.2", at.getOid() );
-
-        at = clone.lookup( "1.2" );
-        assertEquals( "1.2", at.getOid() );
-    }
 }