directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject [directory-ldap-api] branch master updated: Fix the multithreaded test (DIRAPI-317)
Date Fri, 17 Aug 2018 21:46:12 GMT
This is an automated email from the ASF dual-hosted git repository.

elecharny pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-ldap-api.git


The following commit(s) were added to refs/heads/master by this push:
     new 284e8b7  Fix the multithreaded test (DIRAPI-317)
284e8b7 is described below

commit 284e8b7547aedc7950813bc9ebd86243c40dab09
Author: Emmanuel L├ęcharny <elecharny@symas.com>
AuthorDate: Fri Aug 17 23:46:09 2018 +0200

    Fix the multithreaded test (DIRAPI-317)
---
 .../api/ldap/model/name/MultiThreadedTest.java     | 33 +++++++++++-----------
 1 file changed, 16 insertions(+), 17 deletions(-)

diff --git a/integ/src/test/java/org/apache/directory/api/ldap/model/name/MultiThreadedTest.java
b/integ/src/test/java/org/apache/directory/api/ldap/model/name/MultiThreadedTest.java
index 51eb961..4ae57a2 100644
--- a/integ/src/test/java/org/apache/directory/api/ldap/model/name/MultiThreadedTest.java
+++ b/integ/src/test/java/org/apache/directory/api/ldap/model/name/MultiThreadedTest.java
@@ -76,12 +76,12 @@ public class MultiThreadedTest
     @Test
     public void testNormalize() throws Exception
     {
-        sharedRdn = new Rdn( schemaManager, sharedRdn );
+        Rdn SchemaAwareSharedRdn = new Rdn( schemaManager, sharedRdn );
 
-        assertTrue( sharedRdn.isSchemaAware() );
+        assertTrue( SchemaAwareSharedRdn.isSchemaAware() );
 
-        sharedDn = new Dn( schemaManager, sharedDn );
-        assertTrue( sharedDn.isSchemaAware() );
+        Dn schemaAwareSharedDn = new Dn( schemaManager, sharedDn );
+        assertTrue( schemaAwareSharedDn.isSchemaAware() );
     }
 
 
@@ -90,11 +90,11 @@ public class MultiThreadedTest
     {
         assertEquals( referenceAva.hashCode(), sharedAva.hashCode() );
 
-        sharedRdn = new Rdn( schemaManager, sharedRdn );
-        assertEquals( referenceRdn.hashCode(), sharedRdn.hashCode() );
+        Rdn SchemaAwareSharedRdn = new Rdn( schemaManager, sharedRdn );
+        assertEquals( referenceRdn.hashCode(), SchemaAwareSharedRdn.hashCode() );
 
-        sharedDn = new Dn( schemaManager, sharedDn );
-        assertEquals( referenceDn.hashCode(), sharedDn.hashCode() );
+        Dn schemaAwareSharedDn = new Dn( schemaManager, sharedDn );
+        assertEquals( referenceDn.hashCode(), schemaAwareSharedDn.hashCode() );
     }
 
 
@@ -105,15 +105,15 @@ public class MultiThreadedTest
         assertTrue( referenceAva.equals( sharedAva ) );
         assertTrue( sharedAva.equals( referenceAva ) );
 
-        sharedRdn = new Rdn( schemaManager, sharedRdn );
-        assertEquals( referenceRdn, sharedRdn );
-        assertTrue( referenceRdn.equals( sharedRdn ) );
-        assertTrue( sharedRdn.equals( referenceRdn ) );
+        Rdn SchemaAwareSharedRdn = new Rdn( schemaManager, sharedRdn );
+        assertEquals( referenceRdn, SchemaAwareSharedRdn );
+        assertTrue( referenceRdn.equals( SchemaAwareSharedRdn ) );
+        assertTrue( SchemaAwareSharedRdn.equals( referenceRdn ) );
 
-        sharedDn = new Dn( schemaManager, sharedDn );
-        assertEquals( referenceDn, sharedDn );
-        assertTrue( referenceDn.equals( sharedDn ) );
-        assertTrue( sharedDn.equals( referenceDn ) );
+        Dn schemaAwareSharedDn = new Dn( schemaManager, sharedDn );
+        assertEquals( referenceDn, schemaAwareSharedDn );
+        assertTrue( referenceDn.equals( schemaAwareSharedDn ) );
+        assertTrue( schemaAwareSharedDn.equals( referenceDn ) );
     }
 
 
@@ -129,5 +129,4 @@ public class MultiThreadedTest
         assertEquals( referenceDn, sharedDn );
         assertEquals( sharedDn, referenceDn );
     }
-
 }


Mime
View raw message