directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r806828 - in /directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema: ./ comparators/ normalizers/
Date Sat, 22 Aug 2009 09:59:49 GMT
Author: elecharny
Date: Sat Aug 22 09:59:48 2009
New Revision: 806828

URL: http://svn.apache.org/viewvc?rev=806828&view=rev
Log:
Moved around some tests in their associated packages for clarity sake

Added:
    directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/comparators/ByteArrayComparatorTest.java
      - copied, changed from r806632, directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/ByteArrayComparatorTest.java
    directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/normalizers/
    directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/normalizers/BooleanNormalizerTest.java
      - copied, changed from r806632, directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/BooleanNormalizerTest.java
    directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/normalizers/DeepTrimNormalizerTest.java
      - copied, changed from r806632, directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/DeepTrimNormalizerTest.java
    directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/normalizers/NumericNormalizerTest.java
      - copied, changed from r806632, directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/NumericNormalizerTest.java
    directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/normalizers/TelephoneNumberNormalizerTest.java
      - copied, changed from r806632, directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/TelephoneNumberNormalizerTest.java
Removed:
    directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/BooleanNormalizerTest.java
    directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/ByteArrayComparatorTest.java
    directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/DeepTrimNormalizerTest.java
    directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/NumericNormalizerTest.java
    directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/TelephoneNumberNormalizerTest.java

Copied: directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/comparators/ByteArrayComparatorTest.java
(from r806632, directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/ByteArrayComparatorTest.java)
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/comparators/ByteArrayComparatorTest.java?p2=directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/comparators/ByteArrayComparatorTest.java&p1=directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/ByteArrayComparatorTest.java&r1=806632&r2=806828&rev=806828&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/ByteArrayComparatorTest.java
(original)
+++ directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/comparators/ByteArrayComparatorTest.java
Sat Aug 22 09:59:48 2009
@@ -17,7 +17,7 @@
  *  under the License. 
  *  
  */
-package org.apache.directory.shared.ldap.schema;
+package org.apache.directory.shared.ldap.schema.comparators;
 
 
 import org.apache.directory.shared.ldap.schema.comparators.ByteArrayComparator;

Copied: directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/normalizers/BooleanNormalizerTest.java
(from r806632, directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/BooleanNormalizerTest.java)
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/normalizers/BooleanNormalizerTest.java?p2=directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/normalizers/BooleanNormalizerTest.java&p1=directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/BooleanNormalizerTest.java&r1=806632&r2=806828&rev=806828&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/BooleanNormalizerTest.java
(original)
+++ directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/normalizers/BooleanNormalizerTest.java
Sat Aug 22 09:59:48 2009
@@ -17,7 +17,7 @@
  *  under the License. 
  *  
  */
-package org.apache.directory.shared.ldap.schema;
+package org.apache.directory.shared.ldap.schema.normalizers;
 
 
 import org.apache.directory.shared.ldap.entry.Value;

Copied: directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/normalizers/DeepTrimNormalizerTest.java
(from r806632, directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/DeepTrimNormalizerTest.java)
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/normalizers/DeepTrimNormalizerTest.java?p2=directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/normalizers/DeepTrimNormalizerTest.java&p1=directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/DeepTrimNormalizerTest.java&r1=806632&r2=806828&rev=806828&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/DeepTrimNormalizerTest.java
(original)
+++ directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/normalizers/DeepTrimNormalizerTest.java
Sat Aug 22 09:59:48 2009
@@ -17,11 +17,12 @@
  *  under the License.
  *
  */
-package org.apache.directory.shared.ldap.schema;
+package org.apache.directory.shared.ldap.schema.normalizers;
 
 
 import javax.naming.NamingException;
 
+import org.apache.directory.shared.ldap.schema.Normalizer;
 import org.apache.directory.shared.ldap.schema.normalizers.DeepTrimNormalizer;
 import org.junit.Test;
 
@@ -38,7 +39,7 @@
     @Test
     public void testDeepTrimNormalizerNull() throws NamingException
     {
-        Normalizer normalizer = new DeepTrimNormalizer();
+        Normalizer normalizer = new DeepTrimNormalizer( "1.1.1" );
         assertEquals( "", normalizer.normalize( ( String ) null ) );
     }
 
@@ -46,7 +47,7 @@
     @Test
     public void testDeepTrimNormalizerEmpty() throws NamingException
     {
-        Normalizer normalizer = new DeepTrimNormalizer();
+        Normalizer normalizer = new DeepTrimNormalizer( "1.1.1" );
         assertEquals( "", normalizer.normalize( "" ) );
     }
 
@@ -54,7 +55,7 @@
     @Test
     public void testDeepTrimNormalizerOneSpace() throws NamingException
     {
-        Normalizer normalizer = new DeepTrimNormalizer();
+        Normalizer normalizer = new DeepTrimNormalizer( "1.1.1" );
         assertEquals( "", normalizer.normalize( " " ) );
     }
 
@@ -62,7 +63,7 @@
     @Test
     public void testDeepTrimNormalizerTwoSpaces() throws NamingException
     {
-        Normalizer normalizer = new DeepTrimNormalizer();
+        Normalizer normalizer = new DeepTrimNormalizer( "1.1.1" );
         assertEquals( "", normalizer.normalize( "  " ) );
     }
 
@@ -70,7 +71,7 @@
     @Test
     public void testDeepTrimNormalizerNSpaces() throws NamingException
     {
-        Normalizer normalizer = new DeepTrimNormalizer();
+        Normalizer normalizer = new DeepTrimNormalizer( "1.1.1" );
         assertEquals( "", normalizer.normalize( "      " ) );
     }
 
@@ -78,7 +79,7 @@
     @Test
     public void testInsignifiantSpacesStringOneChar() throws NamingException
     {
-        Normalizer normalizer = new DeepTrimNormalizer();
+        Normalizer normalizer = new DeepTrimNormalizer( "1.1.1" );
         assertEquals( "a", normalizer.normalize( "a" ) );
     }
 
@@ -86,7 +87,7 @@
     @Test
     public void testInsignifiantSpacesStringTwoChars() throws NamingException
     {
-        Normalizer normalizer = new DeepTrimNormalizer();
+        Normalizer normalizer = new DeepTrimNormalizer( "1.1.1" );
         assertEquals( "aa", normalizer.normalize( "aa" ) );
     }
 
@@ -94,7 +95,7 @@
     @Test
     public void testInsignifiantSpacesStringNChars() throws NamingException
     {
-        Normalizer normalizer = new DeepTrimNormalizer();
+        Normalizer normalizer = new DeepTrimNormalizer( "1.1.1" );
         assertEquals( "aaaaa", normalizer.normalize( "aaaaa" ) );
     }
 
@@ -102,7 +103,7 @@
     @Test
     public void testInsignifiantSpacesStringOneCombining() throws NamingException
     {
-        Normalizer normalizer = new DeepTrimNormalizer();
+        Normalizer normalizer = new DeepTrimNormalizer( "1.1.1" );
         char[] chars = new char[]
             { ' ', 0x0310 };
         char[] expected = new char[]
@@ -114,7 +115,7 @@
     @Test
     public void testInsignifiantSpacesStringNCombining() throws NamingException
     {
-        Normalizer normalizer = new DeepTrimNormalizer();
+        Normalizer normalizer = new DeepTrimNormalizer( "1.1.1" );
         char[] chars = new char[]
             { ' ', 0x0310, ' ', 0x0311, ' ', 0x0312 };
         char[] expected = new char[]
@@ -126,7 +127,7 @@
     @Test
     public void testInsignifiantSpacesStringCharsSpaces() throws NamingException
     {
-        Normalizer normalizer = new DeepTrimNormalizer();
+        Normalizer normalizer = new DeepTrimNormalizer( "1.1.1" );
         assertEquals( "a", normalizer.normalize( " a" ) );
         assertEquals( "a", normalizer.normalize( "a " ) );
         assertEquals( "a", normalizer.normalize( " a " ) );
@@ -142,7 +143,7 @@
     @Test
     public void testNormalizeCharsCombiningSpaces() throws NamingException
     {
-        Normalizer normalizer = new DeepTrimNormalizer();
+        Normalizer normalizer = new DeepTrimNormalizer( "1.1.1" );
         char[] chars = new char[]
             { ' ', 0x0310, 'a', 'a', ' ', ' ', 0x0311, ' ', ' ', 'a', 0x0311, 0x0312 };
         char[] expected = new char[]
@@ -154,7 +155,7 @@
     @Test
     public void testNormalizeString() throws Exception
     {
-        Normalizer normalizer = new DeepTrimNormalizer();
+        Normalizer normalizer = new DeepTrimNormalizer( "1.1.1" );
         assertEquals( "abcd", normalizer.normalize( "abcd" ) );
     }
 
@@ -162,7 +163,7 @@
     @Test
     public void testMapToSpace() throws Exception
     {
-        Normalizer normalizer = new DeepTrimNormalizer();
+        Normalizer normalizer = new DeepTrimNormalizer( "1.1.1" );
         char[] chars = new char[]
             { 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0085, 0x00A0, 0x1680, 0x2000, 0x2001, 0x2002,
0x2003, 0x2004, 0x2005,
                 0x2006, 0x2007, 0x2008, 0x2009, 0x200A, 0x2028, 0x2029, 0x202F, 0x205F };
@@ -173,7 +174,7 @@
     @Test
     public void testNormalizeIgnore() throws Exception
     {
-        Normalizer normalizer = new DeepTrimNormalizer();
+        Normalizer normalizer = new DeepTrimNormalizer( "1.1.1" );
         char[] chars = new char[58];
 
         int pos = 0;

Copied: directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/normalizers/NumericNormalizerTest.java
(from r806632, directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/NumericNormalizerTest.java)
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/normalizers/NumericNormalizerTest.java?p2=directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/normalizers/NumericNormalizerTest.java&p1=directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/NumericNormalizerTest.java&r1=806632&r2=806828&rev=806828&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/NumericNormalizerTest.java
(original)
+++ directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/normalizers/NumericNormalizerTest.java
Sat Aug 22 09:59:48 2009
@@ -17,11 +17,12 @@
  *  under the License.
  *
  */
-package org.apache.directory.shared.ldap.schema;
+package org.apache.directory.shared.ldap.schema.normalizers;
 
 
 import javax.naming.NamingException;
 
+import org.apache.directory.shared.ldap.schema.Normalizer;
 import org.apache.directory.shared.ldap.schema.normalizers.NumericNormalizer;
 import org.junit.Test;
 import static org.junit.Assert.assertEquals;

Copied: directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/normalizers/TelephoneNumberNormalizerTest.java
(from r806632, directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/TelephoneNumberNormalizerTest.java)
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/normalizers/TelephoneNumberNormalizerTest.java?p2=directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/normalizers/TelephoneNumberNormalizerTest.java&p1=directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/TelephoneNumberNormalizerTest.java&r1=806632&r2=806828&rev=806828&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/TelephoneNumberNormalizerTest.java
(original)
+++ directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/normalizers/TelephoneNumberNormalizerTest.java
Sat Aug 22 09:59:48 2009
@@ -17,11 +17,12 @@
  *  under the License.
  *
  */
-package org.apache.directory.shared.ldap.schema;
+package org.apache.directory.shared.ldap.schema.normalizers;
 
 
 import javax.naming.NamingException;
 
+import org.apache.directory.shared.ldap.schema.Normalizer;
 import org.apache.directory.shared.ldap.schema.normalizers.TelephoneNumberNormalizer;
 import org.junit.Test;
 import static org.junit.Assert.assertEquals;



Mime
View raw message