directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1091456 [2/2] - in /directory: apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/ apacheds/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/operations/ apacheds/trunk/server-integ/src/test/ja...
Date Tue, 12 Apr 2011 15:18:06 GMT
Modified: directory/shared/trunk/ldap/model/src/test/java/org/apache/directory/shared/ldap/model/message/BindRequestImplTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/test/java/org/apache/directory/shared/ldap/model/message/BindRequestImplTest.java?rev=1091456&r1=1091455&r2=1091456&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/test/java/org/apache/directory/shared/ldap/model/message/BindRequestImplTest.java
(original)
+++ directory/shared/trunk/ldap/model/src/test/java/org/apache/directory/shared/ldap/model/message/BindRequestImplTest.java
Tue Apr 12 15:18:04 2011
@@ -26,15 +26,15 @@ import static org.junit.Assert.assertTru
 import java.util.HashMap;
 import java.util.Map;
 
-import com.mycila.junit.concurrent.Concurrency;
-import com.mycila.junit.concurrent.ConcurrentJunitRunner;
 import org.apache.directory.shared.ldap.model.exception.LdapException;
 import org.apache.directory.shared.ldap.model.exception.MessageException;
-import org.apache.directory.shared.ldap.model.message.Control;
 import org.apache.directory.shared.ldap.model.name.Dn;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 
+import com.mycila.junit.concurrent.Concurrency;
+import com.mycila.junit.concurrent.ConcurrentJunitRunner;
+
 
 /**
  * TestCases for the methods of the BindRequestImpl class.
@@ -55,7 +55,8 @@ public class BindRequestImplTest
     @Test
     public void testEqualsSameObj()
     {
-        BindRequestImpl req = new BindRequestImpl( 5 );
+        BindRequestImpl req = new BindRequestImpl();
+        req.setMessageId( 5 );
         assertTrue( req.equals( req ) );
     }
 
@@ -66,13 +67,15 @@ public class BindRequestImplTest
     @Test
     public void testEqualsExactCopy() throws LdapException
     {
-        BindRequestImpl req0 = new BindRequestImpl( 5 );
+        BindRequestImpl req0 = new BindRequestImpl();
+        req0.setMessageId( 5 );
         req0.setCredentials( "password".getBytes() );
         req0.setName( new Dn( "cn=admin,dc=example,dc=com" ) );
         req0.setSimple( true );
         req0.setVersion3( true );
 
-        BindRequestImpl req1 = new BindRequestImpl( 5 );
+        BindRequestImpl req1 = new BindRequestImpl();
+        req1.setMessageId( 5 );
         req1.setCredentials( "password".getBytes() );
         req1.setName( new Dn( "cn=admin,dc=example,dc=com" ) );
         req1.setSimple( true );
@@ -88,13 +91,15 @@ public class BindRequestImplTest
     @Test
     public void testNotEqualDiffId() throws LdapException
     {
-        BindRequestImpl req0 = new BindRequestImpl( 7 );
+        BindRequestImpl req0 = new BindRequestImpl();
+        req0.setMessageId( 7 );
         req0.setCredentials( "password".getBytes() );
         req0.setName( new Dn( "cn=admin,dc=example,dc=com" ) );
         req0.setSimple( true );
         req0.setVersion3( true );
 
-        BindRequestImpl req1 = new BindRequestImpl( 5 );
+        BindRequestImpl req1 = new BindRequestImpl();
+        req1.setMessageId( 5 );
         req1.setCredentials( "password".getBytes() );
         req1.setName( new Dn( "cn=admin,dc=example,dc=com" ) );
         req1.setSimple( true );
@@ -110,13 +115,15 @@ public class BindRequestImplTest
     @Test
     public void testNotEqualDiffCreds() throws LdapException
     {
-        BindRequestImpl req0 = new BindRequestImpl( 5 );
+        BindRequestImpl req0 = new BindRequestImpl();
+        req0.setMessageId( 5 );
         req0.setCredentials( "abcdefg".getBytes() );
         req0.setName( new Dn( "cn=admin,dc=example,dc=com" ) );
         req0.setSimple( true );
         req0.setVersion3( true );
 
-        BindRequestImpl req1 = new BindRequestImpl( 5 );
+        BindRequestImpl req1 = new BindRequestImpl();
+        req1.setMessageId( 5 );
         req1.setCredentials( "password".getBytes() );
         req1.setName( new Dn( "cn=admin,dc=example,dc=com" ) );
         req1.setSimple( true );
@@ -132,13 +139,15 @@ public class BindRequestImplTest
     @Test
     public void testNotEqualDiffName() throws LdapException
     {
-        BindRequestImpl req0 = new BindRequestImpl( 5 );
+        BindRequestImpl req0 = new BindRequestImpl();
+        req0.setMessageId( 5 );
         req0.setCredentials( "password".getBytes() );
         req0.setName( new Dn( "uid=akarasulu,dc=example,dc=com" ) );
         req0.setSimple( true );
         req0.setVersion3( true );
 
-        BindRequestImpl req1 = new BindRequestImpl( 5 );
+        BindRequestImpl req1 = new BindRequestImpl();
+        req1.setMessageId( 5 );
         req1.setCredentials( "password".getBytes() );
         req1.setName( new Dn( "cn=admin,dc=example,dc=com" ) );
         req1.setSimple( true );
@@ -154,13 +163,15 @@ public class BindRequestImplTest
     @Test
     public void testNotEqualDiffSimple() throws LdapException
     {
-        BindRequestImpl req0 = new BindRequestImpl( 5 );
+        BindRequestImpl req0 = new BindRequestImpl();
+        req0.setMessageId( 5 );
         req0.setCredentials( "password".getBytes() );
         req0.setName( new Dn( "cn=admin,dc=example,dc=com" ) );
         req0.setSimple( false );
         req0.setVersion3( true );
 
-        BindRequestImpl req1 = new BindRequestImpl( 5 );
+        BindRequestImpl req1 = new BindRequestImpl();
+        req1.setMessageId( 5 );
         req1.setCredentials( "password".getBytes() );
         req1.setName( new Dn( "cn=admin,dc=example,dc=com" ) );
         req1.setSimple( true );
@@ -176,13 +187,15 @@ public class BindRequestImplTest
     @Test
     public void testNotEqualDiffVersion() throws LdapException
     {
-        BindRequestImpl req0 = new BindRequestImpl( 5 );
+        BindRequestImpl req0 = new BindRequestImpl();
+        req0.setMessageId( 5 );
         req0.setCredentials( "password".getBytes() );
         req0.setName( new Dn( "cn=admin,dc=example,dc=com" ) );
         req0.setSimple( true );
         req0.setVersion3( false );
 
-        BindRequestImpl req1 = new BindRequestImpl( 5 );
+        BindRequestImpl req1 = new BindRequestImpl();
+        req1.setMessageId( 5 );
         req1.setCredentials( "password".getBytes() );
         req1.setName( new Dn( "cn=admin,dc=example,dc=com" ) );
         req1.setSimple( true );
@@ -368,7 +381,8 @@ public class BindRequestImplTest
             }
         };
 
-        BindRequestImpl req1 = new BindRequestImpl( 5 );
+        BindRequestImpl req1 = new BindRequestImpl();
+        req1.setMessageId( 5 );
         assertTrue( req1.equals( req0 ) );
     }
 }

Modified: directory/shared/trunk/ldap/model/src/test/java/org/apache/directory/shared/ldap/model/message/CompareRequestImplTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/test/java/org/apache/directory/shared/ldap/model/message/CompareRequestImplTest.java?rev=1091456&r1=1091455&r2=1091456&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/test/java/org/apache/directory/shared/ldap/model/message/CompareRequestImplTest.java
(original)
+++ directory/shared/trunk/ldap/model/src/test/java/org/apache/directory/shared/ldap/model/message/CompareRequestImplTest.java
Tue Apr 12 15:18:04 2011
@@ -26,16 +26,16 @@ import static org.junit.Assert.assertTru
 import java.util.HashMap;
 import java.util.Map;
 
-import com.mycila.junit.concurrent.Concurrency;
-import com.mycila.junit.concurrent.ConcurrentJunitRunner;
 import org.apache.directory.shared.ldap.model.entry.Value;
 import org.apache.directory.shared.ldap.model.exception.LdapException;
 import org.apache.directory.shared.ldap.model.exception.MessageException;
-import org.apache.directory.shared.ldap.model.message.Control;
 import org.apache.directory.shared.ldap.model.name.Dn;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 
+import com.mycila.junit.concurrent.Concurrency;
+import com.mycila.junit.concurrent.ConcurrentJunitRunner;
+
 
 /**
  * TestCase for the CompareRequestImpl class.
@@ -55,7 +55,8 @@ public class CompareRequestImplTest
     @Test
     public void testEqualsSameObj()
     {
-        CompareRequestImpl req = new CompareRequestImpl( 5 );
+        CompareRequestImpl req = new CompareRequestImpl();
+        req.setMessageId( 5 );
         assertTrue( req.equals( req ) );
     }
 
@@ -66,12 +67,14 @@ public class CompareRequestImplTest
     @Test
     public void testEqualsExactCopy() throws LdapException
     {
-        CompareRequestImpl req0 = new CompareRequestImpl( 5 );
+        CompareRequestImpl req0 = new CompareRequestImpl();
+        req0.setMessageId( 5 );
         req0.setName( new Dn( "cn=admin,dc=example,dc=com" ) );
         req0.setAttributeId( "objectClass" );
         req0.setAssertionValue( "top" );
 
-        CompareRequestImpl req1 = new CompareRequestImpl( 5 );
+        CompareRequestImpl req1 = new CompareRequestImpl();
+        req1.setMessageId( 5 );
         req1.setName( new Dn( "cn=admin,dc=example,dc=com" ) );
         req1.setAttributeId( "objectClass" );
         req1.setAssertionValue( "top" );
@@ -87,7 +90,8 @@ public class CompareRequestImplTest
     @Test
     public void testHashCodeSameObj()
     {
-        CompareRequestImpl req = new CompareRequestImpl( 5 );
+        CompareRequestImpl req = new CompareRequestImpl();
+        req.setMessageId( 5 );
         assertTrue( req.hashCode() == req.hashCode() );
     }
 
@@ -98,12 +102,14 @@ public class CompareRequestImplTest
     @Test
     public void testHashCodeExactCopy() throws LdapException
     {
-        CompareRequestImpl req0 = new CompareRequestImpl( 5 );
+        CompareRequestImpl req0 = new CompareRequestImpl();
+        req0.setMessageId( 5 );
         req0.setName( new Dn( "cn=admin,dc=example,dc=com" ) );
         req0.setAttributeId( "objectClass" );
         req0.setAssertionValue( "top" );
 
-        CompareRequestImpl req1 = new CompareRequestImpl( 5 );
+        CompareRequestImpl req1 = new CompareRequestImpl();
+        req1.setMessageId( 5 );
         req1.setName( new Dn( "cn=admin,dc=example,dc=com" ) );
         req1.setAttributeId( "objectClass" );
         req1.setAssertionValue( "top" );
@@ -118,10 +124,12 @@ public class CompareRequestImplTest
     @Test
     public void testNotEqualDiffId() throws LdapException
     {
-        CompareRequestImpl req0 = new CompareRequestImpl( 7 );
+        CompareRequestImpl req0 = new CompareRequestImpl();
+        req0.setMessageId( 7 );
         req0.setName( new Dn( "cn=admin,dc=example,dc=com" ) );
 
-        CompareRequestImpl req1 = new CompareRequestImpl( 5 );
+        CompareRequestImpl req1 = new CompareRequestImpl();
+        req1.setMessageId( 5 );
         req1.setName( new Dn( "cn=admin,dc=example,dc=com" ) );
 
         assertFalse( req0.equals( req1 ) );
@@ -135,12 +143,14 @@ public class CompareRequestImplTest
     @Test
     public void testNotEqualDiffAttributeIds() throws LdapException
     {
-        CompareRequestImpl req0 = new CompareRequestImpl( 5 );
+        CompareRequestImpl req0 = new CompareRequestImpl();
+        req0.setMessageId( 5 );
         req0.setName( new Dn( "cn=admin,dc=apache,dc=org" ) );
         req0.setAttributeId( "dc" );
         req0.setAssertionValue( "apache.org" );
 
-        CompareRequestImpl req1 = new CompareRequestImpl( 5 );
+        CompareRequestImpl req1 = new CompareRequestImpl();
+        req1.setMessageId( 5 );
         req1.setName( new Dn( "cn=admin,dc=apache,dc=org" ) );
         req1.setAttributeId( "nisDomain" );
         req1.setAssertionValue( "apache.org" );
@@ -156,12 +166,14 @@ public class CompareRequestImplTest
     @Test
     public void testNotEqualDiffValue() throws LdapException
     {
-        CompareRequestImpl req0 = new CompareRequestImpl( 5 );
+        CompareRequestImpl req0 = new CompareRequestImpl();
+        req0.setMessageId( 5 );
         req0.setName( new Dn( "cn=admin,dc=apache,dc=org" ) );
         req0.setAttributeId( "dc" );
         req0.setAssertionValue( "apache.org" );
 
-        CompareRequestImpl req1 = new CompareRequestImpl( 5 );
+        CompareRequestImpl req1 = new CompareRequestImpl();
+        req1.setMessageId( 5 );
         req1.setName( new Dn( "cn=admin,dc=apache,dc=org" ) );
         req1.setAttributeId( "dc" );
         req1.setAssertionValue( "nagoya.apache.org" );
@@ -317,7 +329,8 @@ public class CompareRequestImplTest
             }
         };
 
-        CompareRequestImpl req1 = new CompareRequestImpl( 5 );
+        CompareRequestImpl req1 = new CompareRequestImpl();
+        req1.setMessageId( 5 );
         assertTrue( req1.equals( req0 ) );
         assertFalse( req0.equals( req1 ) );
     }

Modified: directory/shared/trunk/ldap/model/src/test/java/org/apache/directory/shared/ldap/model/message/DeleteRequestImplTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/test/java/org/apache/directory/shared/ldap/model/message/DeleteRequestImplTest.java?rev=1091456&r1=1091455&r2=1091456&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/test/java/org/apache/directory/shared/ldap/model/message/DeleteRequestImplTest.java
(original)
+++ directory/shared/trunk/ldap/model/src/test/java/org/apache/directory/shared/ldap/model/message/DeleteRequestImplTest.java
Tue Apr 12 15:18:04 2011
@@ -26,14 +26,15 @@ import static org.junit.Assert.assertTru
 import java.util.HashMap;
 import java.util.Map;
 
-import com.mycila.junit.concurrent.Concurrency;
-import com.mycila.junit.concurrent.ConcurrentJunitRunner;
 import org.apache.directory.shared.ldap.model.exception.LdapException;
 import org.apache.directory.shared.ldap.model.exception.MessageException;
 import org.apache.directory.shared.ldap.model.name.Dn;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 
+import com.mycila.junit.concurrent.Concurrency;
+import com.mycila.junit.concurrent.ConcurrentJunitRunner;
+
 
 /**
  * TestCase for the methods of the DeleteRequestImpl class.
@@ -53,7 +54,8 @@ public class DeleteRequestImplTest
     @Test
     public void testEqualsSameObj()
     {
-        DeleteRequestImpl req = new DeleteRequestImpl( 5 );
+        DeleteRequestImpl req = new DeleteRequestImpl();
+        req.setMessageId( 5 );
         assertTrue( req.equals( req ) );
     }
 
@@ -64,10 +66,12 @@ public class DeleteRequestImplTest
     @Test
     public void testEqualsExactCopy() throws LdapException
     {
-        DeleteRequestImpl req0 = new DeleteRequestImpl( 5 );
+        DeleteRequestImpl req0 = new DeleteRequestImpl();
+        req0.setMessageId( 5 );
         req0.setName( new Dn( "cn=admin,dc=example,dc=com" ) );
 
-        DeleteRequestImpl req1 = new DeleteRequestImpl( 5 );
+        DeleteRequestImpl req1 = new DeleteRequestImpl();
+        req1.setMessageId( 5 );
         req1.setName( new Dn( "cn=admin,dc=example,dc=com" ) );
 
         assertTrue( req0.equals( req1 ) );
@@ -80,7 +84,8 @@ public class DeleteRequestImplTest
     @Test
     public void testHashCodeSameObj()
     {
-        DeleteRequestImpl req = new DeleteRequestImpl( 5 );
+        DeleteRequestImpl req = new DeleteRequestImpl();
+        req.setMessageId( 5 );
         assertTrue( req.hashCode() == req.hashCode() );
     }
 
@@ -91,10 +96,12 @@ public class DeleteRequestImplTest
     @Test
     public void testHashCodeExactCopy() throws LdapException
     {
-        DeleteRequestImpl req0 = new DeleteRequestImpl( 5 );
+        DeleteRequestImpl req0 = new DeleteRequestImpl();
+        req0.setMessageId( 5 );
         req0.setName( new Dn( "cn=admin,dc=example,dc=com" ) );
 
-        DeleteRequestImpl req1 = new DeleteRequestImpl( 5 );
+        DeleteRequestImpl req1 = new DeleteRequestImpl();
+        req1.setMessageId( 5 );
         req1.setName( new Dn( "cn=admin,dc=example,dc=com" ) );
 
         assertTrue( req0.hashCode() == req1.hashCode() );
@@ -107,10 +114,12 @@ public class DeleteRequestImplTest
     @Test
     public void testNotEqualDiffId() throws LdapException
     {
-        DeleteRequestImpl req0 = new DeleteRequestImpl( 7 );
+        DeleteRequestImpl req0 = new DeleteRequestImpl();
+        req0.setMessageId( 7 );
         req0.setName( new Dn( "cn=admin,dc=example,dc=com" ) );
 
-        DeleteRequestImpl req1 = new DeleteRequestImpl( 5 );
+        DeleteRequestImpl req1 = new DeleteRequestImpl();
+        req1.setMessageId( 5 );
         req1.setName( new Dn( "cn=admin,dc=example,dc=com" ) );
 
         assertFalse( req0.equals( req1 ) );
@@ -123,10 +132,12 @@ public class DeleteRequestImplTest
     @Test
     public void testNotEqualDiffName() throws LdapException
     {
-        DeleteRequestImpl req0 = new DeleteRequestImpl( 5 );
+        DeleteRequestImpl req0 = new DeleteRequestImpl();
+        req0.setMessageId( 5 );
         req0.setName( new Dn( "uid=akarasulu,dc=example,dc=com" ) );
 
-        DeleteRequestImpl req1 = new DeleteRequestImpl( 5 );
+        DeleteRequestImpl req1 = new DeleteRequestImpl();
+        req1.setMessageId( 5 );
         req1.setName( new Dn( "cn=admin,dc=example,dc=com" ) );
 
         assertFalse( req0.equals( req1 ) );
@@ -249,7 +260,8 @@ public class DeleteRequestImplTest
             }
         };
 
-        DeleteRequestImpl req1 = new DeleteRequestImpl( 5 );
+        DeleteRequestImpl req1 = new DeleteRequestImpl();
+        req1.setMessageId( 5 );
         assertTrue( req1.equals( req0 ) );
     }
 }

Modified: directory/shared/trunk/ldap/model/src/test/java/org/apache/directory/shared/ldap/model/message/ExtendedRequestImplTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/test/java/org/apache/directory/shared/ldap/model/message/ExtendedRequestImplTest.java?rev=1091456&r1=1091455&r2=1091456&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/test/java/org/apache/directory/shared/ldap/model/message/ExtendedRequestImplTest.java
(original)
+++ directory/shared/trunk/ldap/model/src/test/java/org/apache/directory/shared/ldap/model/message/ExtendedRequestImplTest.java
Tue Apr 12 15:18:04 2011
@@ -26,12 +26,13 @@ import static org.junit.Assert.assertTru
 import java.util.HashMap;
 import java.util.Map;
 
-import com.mycila.junit.concurrent.Concurrency;
-import com.mycila.junit.concurrent.ConcurrentJunitRunner;
 import org.apache.directory.shared.ldap.model.exception.MessageException;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 
+import com.mycila.junit.concurrent.Concurrency;
+import com.mycila.junit.concurrent.ConcurrentJunitRunner;
+
 
 /**
  * TestCase for the ExtendedRequestImpl class.
@@ -51,7 +52,8 @@ public class ExtendedRequestImplTest
     @Test
     public void testEqualsSameObj()
     {
-        ExtendedRequestImpl req = new ExtendedRequestImpl( 5 );
+        ExtendedRequestImpl req = new ExtendedRequestImpl();
+        req.setMessageId( 5 );
         assertTrue( req.equals( req ) );
     }
 
@@ -62,10 +64,12 @@ public class ExtendedRequestImplTest
     @Test
     public void testEqualsExactCopy()
     {
-        ExtendedRequestImpl req0 = new ExtendedRequestImpl( 5 );
+        ExtendedRequestImpl req0 = new ExtendedRequestImpl();
+        req0.setMessageId( 5 );
         req0.setRequestName( "1.1.1.1" );
 
-        ExtendedRequestImpl req1 = new ExtendedRequestImpl( 5 );
+        ExtendedRequestImpl req1 = new ExtendedRequestImpl();
+        req1.setMessageId( 5 );
         req1.setRequestName( "1.1.1.1" );
 
         assertTrue( req0.equals( req1 ) );
@@ -79,7 +83,8 @@ public class ExtendedRequestImplTest
     @Test
     public void testHashCodeSameObj()
     {
-        ExtendedRequestImpl req = new ExtendedRequestImpl( 5 );
+        ExtendedRequestImpl req = new ExtendedRequestImpl();
+        req.setMessageId( 5 );
         assertTrue( req.hashCode() == req.hashCode() );
     }
 
@@ -90,10 +95,12 @@ public class ExtendedRequestImplTest
     @Test
     public void testHashCodeExactCopy()
     {
-        ExtendedRequestImpl req0 = new ExtendedRequestImpl( 5 );
+        ExtendedRequestImpl req0 = new ExtendedRequestImpl();
+        req0.setMessageId( 5 );
         req0.setRequestName( "1.1.1.1" );
 
-        ExtendedRequestImpl req1 = new ExtendedRequestImpl( 5 );
+        ExtendedRequestImpl req1 = new ExtendedRequestImpl();
+        req1.setMessageId( 5 );
         req1.setRequestName( "1.1.1.1" );
 
         assertTrue( req0.hashCode() == req1.hashCode() );
@@ -106,8 +113,10 @@ public class ExtendedRequestImplTest
     @Test
     public void testNotEqualDiffId()
     {
-        ExtendedRequestImpl req0 = new ExtendedRequestImpl( 7 );
-        ExtendedRequestImpl req1 = new ExtendedRequestImpl( 5 );
+        ExtendedRequestImpl req0 = new ExtendedRequestImpl();
+        req0.setMessageId( 7 );
+        ExtendedRequestImpl req1 = new ExtendedRequestImpl();
+        req1.setMessageId( 5 );
 
         assertFalse( req0.equals( req1 ) );
         assertFalse( req1.equals( req0 ) );
@@ -120,10 +129,12 @@ public class ExtendedRequestImplTest
     @Test
     public void testNotEqualDiffOID()
     {
-        ExtendedRequestImpl req0 = new ExtendedRequestImpl( 5 );
+        ExtendedRequestImpl req0 = new ExtendedRequestImpl();
+        req0.setMessageId( 5 );
         req0.setRequestName( "1.1.1.1" );
 
-        ExtendedRequestImpl req1 = new ExtendedRequestImpl( 5 );
+        ExtendedRequestImpl req1 = new ExtendedRequestImpl();
+        req1.setMessageId( 5 );
         req0.setRequestName( "1.2.2.1" );
 
         assertFalse( req0.equals( req1 ) );
@@ -137,10 +148,12 @@ public class ExtendedRequestImplTest
     @Test
     public void testNotEqualDiffValue()
     {
-        ExtendedRequestImpl req0 = new ExtendedRequestImpl( 5 );
+        ExtendedRequestImpl req0 = new ExtendedRequestImpl();
+        req0.setMessageId( 5 );
         req0.setRequestName( "1.1.1.1" );
 
-        ExtendedRequestImpl req1 = new ExtendedRequestImpl( 5 );
+        ExtendedRequestImpl req1 = new ExtendedRequestImpl();
+        req1.setMessageId( 5 );
         req0.setRequestName( "1.1.1.1" );
 
         assertFalse( req0.equals( req1 ) );
@@ -251,7 +264,8 @@ public class ExtendedRequestImplTest
             }
         };
 
-        ExtendedRequestImpl req1 = new ExtendedRequestImpl( 5 );
+        ExtendedRequestImpl req1 = new ExtendedRequestImpl();
+        req1.setMessageId( 5 );
         assertTrue( req1.equals( req0 ) );
         assertFalse( req0.equals( req1 ) );
     }

Modified: directory/shared/trunk/ldap/model/src/test/java/org/apache/directory/shared/ldap/model/message/ModifyDnRequestImplTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/test/java/org/apache/directory/shared/ldap/model/message/ModifyDnRequestImplTest.java?rev=1091456&r1=1091455&r2=1091456&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/test/java/org/apache/directory/shared/ldap/model/message/ModifyDnRequestImplTest.java
(original)
+++ directory/shared/trunk/ldap/model/src/test/java/org/apache/directory/shared/ldap/model/message/ModifyDnRequestImplTest.java
Tue Apr 12 15:18:04 2011
@@ -26,16 +26,16 @@ import static org.junit.Assert.assertTru
 import java.util.HashMap;
 import java.util.Map;
 
-import com.mycila.junit.concurrent.Concurrency;
-import com.mycila.junit.concurrent.ConcurrentJunitRunner;
 import org.apache.directory.shared.ldap.model.exception.LdapException;
 import org.apache.directory.shared.ldap.model.exception.MessageException;
-import org.apache.directory.shared.ldap.model.message.Control;
 import org.apache.directory.shared.ldap.model.name.Dn;
 import org.apache.directory.shared.ldap.model.name.Rdn;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 
+import com.mycila.junit.concurrent.Concurrency;
+import com.mycila.junit.concurrent.ConcurrentJunitRunner;
+
 
 /**
  * TestCase for the ModifyDnRequestImpl class.
@@ -57,7 +57,8 @@ public class ModifyDnRequestImplTest
     private ModifyDnRequestImpl getRequest()
     {
         // Construct the ModifyDn request to test
-        ModifyDnRequestImpl request = new ModifyDnRequestImpl( 45 );
+        ModifyDnRequestImpl request = new ModifyDnRequestImpl();
+        request.setMessageId( 45 );
         request.setDeleteOldRdn( true );
 
         try
@@ -81,7 +82,8 @@ public class ModifyDnRequestImplTest
     @Test
     public void testEqualsSameObj()
     {
-        ModifyDnRequestImpl req = new ModifyDnRequestImpl( 5 );
+        ModifyDnRequestImpl req = new ModifyDnRequestImpl();
+        req.setMessageId( 5 );
         assertTrue( req.equals( req ) );
     }
 
@@ -120,7 +122,8 @@ public class ModifyDnRequestImplTest
     @Test
     public void testHashCodeSameObj()
     {
-        ModifyDnRequestImpl req = new ModifyDnRequestImpl( 5 );
+        ModifyDnRequestImpl req = new ModifyDnRequestImpl();
+        req.setMessageId( 5 );
         assertTrue( req.hashCode() == req.hashCode() );
     }
 
@@ -159,8 +162,10 @@ public class ModifyDnRequestImplTest
     @Test
     public void testNotEqualDiffId()
     {
-        ModifyDnRequestImpl req0 = new ModifyDnRequestImpl( 4 );
-        ModifyDnRequestImpl req1 = new ModifyDnRequestImpl( 5 );
+        ModifyDnRequestImpl req0 = new ModifyDnRequestImpl();
+        req0.setMessageId( 4 );
+        ModifyDnRequestImpl req1 = new ModifyDnRequestImpl();
+        req1.setMessageId( 5 );
 
         assertFalse( req0.equals( req1 ) );
     }

Modified: directory/shared/trunk/ldap/model/src/test/java/org/apache/directory/shared/ldap/model/message/ModifyRequestImplTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/test/java/org/apache/directory/shared/ldap/model/message/ModifyRequestImplTest.java?rev=1091456&r1=1091455&r2=1091456&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/test/java/org/apache/directory/shared/ldap/model/message/ModifyRequestImplTest.java
(original)
+++ directory/shared/trunk/ldap/model/src/test/java/org/apache/directory/shared/ldap/model/message/ModifyRequestImplTest.java
Tue Apr 12 15:18:04 2011
@@ -29,9 +29,9 @@ import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 
+import org.apache.directory.shared.ldap.model.entry.Attribute;
 import org.apache.directory.shared.ldap.model.entry.DefaultAttribute;
 import org.apache.directory.shared.ldap.model.entry.DefaultModification;
-import org.apache.directory.shared.ldap.model.entry.Attribute;
 import org.apache.directory.shared.ldap.model.entry.Modification;
 import org.apache.directory.shared.ldap.model.entry.ModificationOperation;
 import org.apache.directory.shared.ldap.model.exception.LdapException;
@@ -65,7 +65,8 @@ public class ModifyRequestImplTest
     private ModifyRequestImpl getRequest() throws LdapException
     {
         // Construct the Modify request to test
-        ModifyRequestImpl req = new ModifyRequestImpl( 45 );
+        ModifyRequestImpl req = new ModifyRequestImpl();
+        req.setMessageId( 45 );
 
         try
         {
@@ -150,8 +151,10 @@ public class ModifyRequestImplTest
     @Test
     public void testNotEqualDiffId()
     {
-        ModifyRequestImpl req0 = new ModifyRequestImpl( 7 );
-        ModifyRequestImpl req1 = new ModifyRequestImpl( 5 );
+        ModifyRequestImpl req0 = new ModifyRequestImpl();
+        req0.setMessageId( 7 );
+        ModifyRequestImpl req1 = new ModifyRequestImpl();
+        req1.setMessageId( 5 );
         assertFalse( req0.equals( req1 ) );
     }
 



Mime
View raw message