From commits-return-23648-apmail-directory-commits-archive=directory.apache.org@directory.apache.org Tue Nov 17 17:36:22 2009 Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 65140 invoked from network); 17 Nov 2009 17:36:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Nov 2009 17:36:21 -0000 Received: (qmail 64136 invoked by uid 500); 17 Nov 2009 17:36:21 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 64072 invoked by uid 500); 17 Nov 2009 17:36:21 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 63928 invoked by uid 99); 17 Nov 2009 17:36:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Nov 2009 17:36:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Nov 2009 17:36:19 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 3174623889CB; Tue, 17 Nov 2009 17:35:58 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r881397 - /directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/registries/AttributeTypeRegistryTest.java Date: Tue, 17 Nov 2009 17:35:57 -0000 To: commits@directory.apache.org From: elecharny@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20091117173558.3174623889CB@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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() ); - } }