directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1089609 - /directory/apacheds/trunk/core-api/src/test/java/org/apache/directory/server/core/entry/SchemaAwareEntryTest.java
Date Wed, 06 Apr 2011 20:04:26 GMT
Author: elecharny
Date: Wed Apr  6 20:04:26 2011
New Revision: 1089609

URL: http://svn.apache.org/viewvc?rev=1089609&view=rev
Log:
Removed dead code

Modified:
    directory/apacheds/trunk/core-api/src/test/java/org/apache/directory/server/core/entry/SchemaAwareEntryTest.java

Modified: directory/apacheds/trunk/core-api/src/test/java/org/apache/directory/server/core/entry/SchemaAwareEntryTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-api/src/test/java/org/apache/directory/server/core/entry/SchemaAwareEntryTest.java?rev=1089609&r1=1089608&r2=1089609&view=diff
==============================================================================
--- directory/apacheds/trunk/core-api/src/test/java/org/apache/directory/server/core/entry/SchemaAwareEntryTest.java
(original)
+++ directory/apacheds/trunk/core-api/src/test/java/org/apache/directory/server/core/entry/SchemaAwareEntryTest.java
Wed Apr  6 20:04:26 2011
@@ -189,57 +189,6 @@ public class SchemaAwareEntryTest
     }
 
 
-    /**
-     * Test for method DefaultEntry( registries, Dn, AttributeType... )
-     *
-    @Test
-    public void testDefaultClientEntryRegistriesDNAttributeTypeArray() throws Exception
-    {
-        Entry entry = new DefaultEntry( schemaManager, EXAMPLE_DN, atOC, atPwd, atCN );
-        assertNotNull( entry );
-        assertEquals( EXAMPLE_DN, entry.getDn() );
-        assertEquals( 3, entry.size() );
-        assertTrue( entry.containsAttribute( atOC ) );
-        assertTrue( entry.containsAttribute( atPwd ) );
-        assertTrue( entry.containsAttribute( atCN ) );
-    }
-
-
-    /**
-     * Test for method DefaultEntry( registries, Dn, AttributeType, upId )
-     *
-    @Test
-    public void testDefaultClientEntryRegistriesDNAttributeTypeUpId() throws Exception
-    {
-        Entry entry = new DefaultEntry( schemaManager, EXAMPLE_DN, atOC, "  OBJECTCLASS 
" );
-        assertNotNull( entry );
-        assertEquals( EXAMPLE_DN, entry.getDn() );
-        assertEquals( 1, entry.size() );
-        assertTrue( entry.containsAttribute( atOC ) );
-        assertEquals( "2.5.4.0", entry.get( atOC ).getId() );
-        assertEquals( "  OBJECTCLASS  ", entry.get( atOC ).getUpId() );
-    }
-
-
-    /**
-     * Test for method DefaultEntry( registries, Dn, AttributeType, upId )
-     *
-    @Test
-    public void testDefaultClientEntryRegistriesDNUpIdArray() throws Exception
-    {
-        Entry entry = new DefaultEntry( schemaManager, EXAMPLE_DN, "  OBJECTCLASS  ", " Cn
" );
-        assertNotNull( entry );
-        assertEquals( EXAMPLE_DN, entry.getDn() );
-        assertEquals( 2, entry.size() );
-        assertTrue( entry.containsAttribute( "objectClass" ) );
-        assertEquals( "2.5.4.0", entry.get( atOC ).getId() );
-        assertEquals( "  OBJECTCLASS  ", entry.get( atOC ).getUpId() );
-        assertTrue( entry.containsAttribute( "2.5.4.3" ) );
-        assertEquals( "2.5.4.3", entry.get( atCN ).getId() );
-        assertEquals( " Cn ", entry.get( atCN ).getUpId() );
-    }
-
-
     //-------------------------------------------------------------------------
     // Test the Add methods
     //-------------------------------------------------------------------------



Mime
View raw message