directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r808368 - /directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/SchemaUtilsTest.java
Date Thu, 27 Aug 2009 11:09:33 GMT
Author: elecharny
Date: Thu Aug 27 11:09:33 2009
New Revision: 808368

URL: http://svn.apache.org/viewvc?rev=808368&view=rev
Log:
More compilation issues fixed

Modified:
    directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/SchemaUtilsTest.java

Modified: directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/SchemaUtilsTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/SchemaUtilsTest.java?rev=808368&r1=808367&r2=808368&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/SchemaUtilsTest.java
(original)
+++ directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/schema/SchemaUtilsTest.java
Thu Aug 27 11:09:33 2009
@@ -20,6 +20,9 @@
 package org.apache.directory.shared.ldap.schema;
 
 
+import java.util.Arrays;
+import java.util.List;
+
 import org.junit.Test;
 import static org.junit.Assert.assertEquals;
 
@@ -114,29 +117,29 @@
     @Test
     public void testRenderQdescrs()
     {
-        assertEquals( "", SchemaUtils.render( ( String[] ) null ).toString() );
-        assertEquals( "", SchemaUtils.render( new String[]
-            {} ).toString() );
-        assertEquals( "'name1'", SchemaUtils.render( new String[]
-            { "name1" } ).toString() );
-        assertEquals( "( 'name1' 'name2' )", SchemaUtils.render( new String[]
-            { "name1", "name2" } ).toString() );
-        assertEquals( "( 'name1' 'name2' 'name3' )", SchemaUtils.render( new String[]
-            { "name1", "name2", "name3" } ).toString() );
+        assertEquals( "", SchemaUtils.render( (List<String>)null ).toString() );
+        assertEquals( "", SchemaUtils.render( Arrays.asList( new String[]
+            {} ) ).toString() );
+        assertEquals( "'name1'", SchemaUtils.render( Arrays.asList( new String[]
+            { "name1" } ) ).toString() );
+        assertEquals( "( 'name1' 'name2' )", SchemaUtils.render( Arrays.asList( new String[]
+            { "name1", "name2" } ) ).toString() );
+        assertEquals( "( 'name1' 'name2' 'name3' )", SchemaUtils.render( Arrays.asList( new
String[]
+            { "name1", "name2", "name3" } ) ).toString() );
 
         StringBuffer buf = new StringBuffer();
-        assertEquals( "", SchemaUtils.render( buf, ( String[] ) null ).toString() );
+        assertEquals( "", SchemaUtils.render( buf, (List<String>)null ).toString()
);
 
-        assertEquals( "", SchemaUtils.render( new String[]
-            {} ).toString() );
+        assertEquals( "", SchemaUtils.render( Arrays.asList( new String[]
+            {} ) ).toString() );
 
-        assertEquals( "'name1'", SchemaUtils.render( new String[]
-            { "name1" } ).toString() );
+        assertEquals( "'name1'", SchemaUtils.render( Arrays.asList( new String[]
+            { "name1" } ) ).toString() );
 
-        assertEquals( "( 'name1' 'name2' )", SchemaUtils.render( new String[]
-            { "name1", "name2" } ).toString() );
+        assertEquals( "( 'name1' 'name2' )", SchemaUtils.render( Arrays.asList( new String[]
+            { "name1", "name2" } ) ).toString() );
 
-        assertEquals( "( 'name1' 'name2' 'name3' )", SchemaUtils.render( new String[]
-            { "name1", "name2", "name3" } ).toString() );
+        assertEquals( "( 'name1' 'name2' 'name3' )", SchemaUtils.render( Arrays.asList( new
String[]
+            { "name1", "name2", "name3" } ) ).toString() );
     }
 }



Mime
View raw message