directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r983534 [3/3] - in /directory: apacheds/branches/apacheds-codec-merge/server-integ/src/test/java/org/apache/directory/server/operations/add/ shared/branches/shared-codec-merge/asn1/src/main/java/org/apache/directory/shared/asn1/codec/statef...
Date Mon, 09 Aug 2010 06:42:25 GMT
Modified: directory/shared/branches/shared-codec-merge/ldap/src/test/java/org/apache/directory/shared/ldap/message/ModifyRequestImplTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-codec-merge/ldap/src/test/java/org/apache/directory/shared/ldap/message/ModifyRequestImplTest.java?rev=983534&r1=983533&r2=983534&view=diff
==============================================================================
--- directory/shared/branches/shared-codec-merge/ldap/src/test/java/org/apache/directory/shared/ldap/message/ModifyRequestImplTest.java
(original)
+++ directory/shared/branches/shared-codec-merge/ldap/src/test/java/org/apache/directory/shared/ldap/message/ModifyRequestImplTest.java
Mon Aug  9 06:41:54 2010
@@ -32,8 +32,8 @@ import java.util.Map;
 import org.apache.directory.junit.tools.Concurrent;
 import org.apache.directory.junit.tools.ConcurrentJunitRunner;
 import org.apache.directory.shared.ldap.codec.MessageTypeEnum;
-import org.apache.directory.shared.ldap.entry.DefaultModification;
 import org.apache.directory.shared.ldap.entry.DefaultEntryAttribute;
+import org.apache.directory.shared.ldap.entry.DefaultModification;
 import org.apache.directory.shared.ldap.entry.EntryAttribute;
 import org.apache.directory.shared.ldap.entry.Modification;
 import org.apache.directory.shared.ldap.entry.ModificationOperation;
@@ -57,6 +57,7 @@ public class ModifyRequestImplTest
 {
     private static final Map<String, Control> EMPTY_CONTROL_MAP = new HashMap<String,
Control>();
 
+
     /**
      * Builds a ModifyRequest for testing purposes.
      * 
@@ -66,8 +67,8 @@ public class ModifyRequestImplTest
     {
         // Construct the Modify request to test
         ModifyRequestImpl req = new ModifyRequestImpl( 45 );
-        
-        try 
+
+        try
         {
             req.setName( new DN( "cn=admin,dc=apache,dc=org" ) );
         }
@@ -426,6 +427,12 @@ public class ModifyRequestImplTest
             {
                 return false;
             }
+
+
+            public Control getCurrentControl()
+            {
+                return null;
+            }
         };
 
         ModifyRequestImpl req1 = getRequest();

Modified: directory/shared/branches/shared-codec-merge/ldap/src/test/java/org/apache/directory/shared/ldap/message/SearchResponseDoneImplTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-codec-merge/ldap/src/test/java/org/apache/directory/shared/ldap/message/SearchResponseDoneImplTest.java?rev=983534&r1=983533&r2=983534&view=diff
==============================================================================
--- directory/shared/branches/shared-codec-merge/ldap/src/test/java/org/apache/directory/shared/ldap/message/SearchResponseDoneImplTest.java
(original)
+++ directory/shared/branches/shared-codec-merge/ldap/src/test/java/org/apache/directory/shared/ldap/message/SearchResponseDoneImplTest.java
Mon Aug  9 06:41:54 2010
@@ -50,6 +50,7 @@ public class SearchResponseDoneImplTest
 {
     private static final Map<String, Control> EMPTY_CONTROL_MAP = new HashMap<String,
Control>();
 
+
     /**
      * Creates and populates a SearchResponseDoneImpl stub for testing purposes.
      * 
@@ -60,7 +61,7 @@ public class SearchResponseDoneImplTest
         // Construct the Search response to test with results and referrals
         SearchResponseDoneImpl response = new SearchResponseDoneImpl( 45 );
         InternalLdapResult result = response.getLdapResult();
-        
+
         try
         {
             result.setMatchedDn( new DN( "dc=example,dc=com" ) );
@@ -69,7 +70,7 @@ public class SearchResponseDoneImplTest
         {
             // do nothing
         }
-        
+
         result.setResultCode( ResultCodeEnum.SUCCESS );
         ReferralImpl refs = new ReferralImpl();
         refs.addLdapUrl( "ldap://someserver.com" );
@@ -116,12 +117,12 @@ public class SearchResponseDoneImplTest
             public InternalLdapResult getLdapResult()
             {
                 LdapResultImpl result = new LdapResultImpl();
-                
+
                 try
                 {
                     result.setMatchedDn( new DN( "dc=example,dc=com" ) );
                 }
-                catch ( Exception e ) 
+                catch ( Exception e )
                 {
                     // Do nothing
                 }
@@ -185,6 +186,12 @@ public class SearchResponseDoneImplTest
             {
                 return false;
             }
+
+
+            public Control getCurrentControl()
+            {
+                return null;
+            }
         };
 
         assertTrue( resp0.equals( resp1 ) );

Modified: directory/shared/branches/shared-codec-merge/ldap/src/test/java/org/apache/directory/shared/ldap/message/SearchResponseReferenceImplTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-codec-merge/ldap/src/test/java/org/apache/directory/shared/ldap/message/SearchResponseReferenceImplTest.java?rev=983534&r1=983533&r2=983534&view=diff
==============================================================================
--- directory/shared/branches/shared-codec-merge/ldap/src/test/java/org/apache/directory/shared/ldap/message/SearchResponseReferenceImplTest.java
(original)
+++ directory/shared/branches/shared-codec-merge/ldap/src/test/java/org/apache/directory/shared/ldap/message/SearchResponseReferenceImplTest.java
Mon Aug  9 06:41:54 2010
@@ -47,6 +47,7 @@ public class SearchResponseReferenceImpl
 {
     private static final Map<String, Control> EMPTY_CONTROL_MAP = new HashMap<String,
Control>();
 
+
     /**
      * Creates a baseline referral to test with and adds it to the supplied
      * response object.
@@ -162,6 +163,12 @@ public class SearchResponseReferenceImpl
             {
                 return false;
             }
+
+
+            public Control getCurrentControl()
+            {
+                return null;
+            }
         };
 
         SearchResponseReferenceImpl resp1 = new SearchResponseReferenceImpl( 5 );



Mime
View raw message