directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r595565 - /directory/apacheds/branches/bigbang/core/src/test/java/org/apache/directory/server/core/changelog/MemoryChangeLogStoreTest.java
Date Fri, 16 Nov 2007 05:52:36 GMT
Author: akarasulu
Date: Thu Nov 15 21:52:31 2007
New Revision: 595565

URL: http://svn.apache.org/viewvc?rev=595565&view=rev
Log:
fixed compile problem with change log test case

Modified:
    directory/apacheds/branches/bigbang/core/src/test/java/org/apache/directory/server/core/changelog/MemoryChangeLogStoreTest.java

Modified: directory/apacheds/branches/bigbang/core/src/test/java/org/apache/directory/server/core/changelog/MemoryChangeLogStoreTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/core/src/test/java/org/apache/directory/server/core/changelog/MemoryChangeLogStoreTest.java?rev=595565&r1=595564&r2=595565&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/core/src/test/java/org/apache/directory/server/core/changelog/MemoryChangeLogStoreTest.java
(original)
+++ directory/apacheds/branches/bigbang/core/src/test/java/org/apache/directory/server/core/changelog/MemoryChangeLogStoreTest.java
Thu Nov 15 21:52:31 2007
@@ -24,8 +24,6 @@
 import org.apache.directory.shared.ldap.ldif.ChangeType;
 import org.apache.directory.shared.ldap.ldif.Entry;
 import org.apache.directory.shared.ldap.ldif.LdifUtils;
-import org.apache.directory.shared.ldap.message.AddRequest;
-import org.apache.directory.shared.ldap.message.AddRequestImpl;
 import org.apache.directory.shared.ldap.name.LdapDN;
 
 import javax.naming.InvalidNameException;
@@ -67,11 +65,8 @@
         forward.putAttribute( "objectClass", "organizationalUnit" );
         forward.putAttribute( "ou", "system" );
 
-        AddRequest addRequest = new AddRequestImpl( 0 );
-        addRequest.setAttributes( forward.getAttributes() );
-        addRequest.setEntry( new LdapDN( forward.getDn() ) );
-        Entry reverse = LdifUtils.reverseAdd( addRequest );
+        Entry reverse = LdifUtils.reverseAdd( new LdapDN( forward.getDn() ) );
         assertEquals( 1, store.log( new LdapPrincipal(), forward, reverse ) );
         assertEquals( 1, store.getCurrentRevision() );
     }
-}
\ No newline at end of file
+}



Mime
View raw message