directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r593528 - in /directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/ldif: LdifReaderTest.java LdifUtilsTest.java
Date Fri, 09 Nov 2007 14:03:41 GMT
Author: elecharny
Date: Fri Nov  9 06:03:41 2007
New Revision: 593528

URL: http://svn.apache.org/viewvc?rev=593528&view=rev
Log:
Removed an unused import
Removed some warnings using generics

Modified:
    directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/ldif/LdifReaderTest.java
    directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/ldif/LdifUtilsTest.java

Modified: directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/ldif/LdifReaderTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/ldif/LdifReaderTest.java?rev=593528&r1=593527&r2=593528&view=diff
==============================================================================
--- directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/ldif/LdifReaderTest.java
(original)
+++ directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/ldif/LdifReaderTest.java
Fri Nov  9 06:03:41 2007
@@ -90,7 +90,7 @@
         String ldif = null;
 
         LdifReader reader = new LdifReader();
-        List entries = reader.parseLdif( ldif );
+        List<Entry> entries = reader.parseLdif( ldif );
 
         assertEquals( 0, entries.size() );
     }
@@ -100,7 +100,7 @@
         String ldif = "";
 
         LdifReader reader = new LdifReader();
-        List entries = reader.parseLdif( ldif );
+        List<Entry> entries = reader.parseLdif( ldif );
 
         assertEquals( 0, entries.size() );
     }
@@ -110,7 +110,7 @@
         String ldif = "\n\n\r\r\n";
 
         LdifReader reader = new LdifReader();
-        List entries = reader.parseLdif( ldif );
+        List<Entry> entries = reader.parseLdif( ldif );
 
         assertEquals( 0, entries.size() );
     }
@@ -125,7 +125,7 @@
             "\n";
 
         LdifReader reader = new LdifReader();
-        List entries = reader.parseLdif( ldif );
+        List<Entry> entries = reader.parseLdif( ldif );
 
         assertEquals( 0, entries.size() );
     }
@@ -143,7 +143,7 @@
             "# end";
 
         LdifReader reader = new LdifReader();
-        List entries = reader.parseLdif( ldif );
+        List<Entry> entries = reader.parseLdif( ldif );
 
         assertEquals( 0, entries.size() );
         assertEquals( 1, reader.getVersion() );
@@ -165,7 +165,7 @@
 
 
         LdifReader reader = new LdifReader();
-        List entries = reader.parseLdif( ldif );
+        List<Entry> entries = reader.parseLdif( ldif );
 
         assertEquals( 1, reader.getVersion() );
         assertNotNull( entries );
@@ -195,7 +195,7 @@
             "# end";
 
         LdifReader reader = new LdifReader();
-        List entries = reader.parseLdif( ldif );
+        List<Entry> entries = reader.parseLdif( ldif );
 
         assertEquals( 0, entries.size() );
         assertEquals( 1, reader.getVersion() );
@@ -220,7 +220,7 @@
 
         LdifReader reader = new LdifReader();
 
-        List entries = reader.parseLdif( ldif );
+        List<Entry> entries = reader.parseLdif( ldif );
         assertNotNull( entries );
 
         Entry entry = (Entry) entries.get( 0 );
@@ -262,7 +262,7 @@
     {
         LdifReader reader = new LdifReader();
 
-        List entries = reader.parseLdif( ldif );
+        List<Entry> entries = reader.parseLdif( ldif );
         assertNotNull( entries );
 
         Entry entry = ( Entry ) entries.get( 0 );
@@ -441,7 +441,7 @@
             "envVars:";
 
         LdifReader reader = new LdifReader();
-        List entries = reader.parseLdif( ldif );
+        List<Entry> entries = reader.parseLdif( ldif );
 
         assertNotNull( entries );
 
@@ -484,7 +484,7 @@
             "envVars:";
 
         LdifReader reader = new LdifReader();
-        List entries = reader.parseLdif( ldif );
+        List<Entry> entries = reader.parseLdif( ldif );
 
         assertNotNull( entries );
 
@@ -527,7 +527,7 @@
             "envVars:";
 
         LdifReader reader = new LdifReader();
-        List entries = reader.parseLdif( ldif );
+        List<Entry> entries = reader.parseLdif( ldif );
 
         assertNotNull( entries );
 
@@ -569,7 +569,7 @@
             "envVars:";
 
         LdifReader reader = new LdifReader();
-        List entries = reader.parseLdif( ldif );
+        List<Entry> entries = reader.parseLdif( ldif );
 
         assertNotNull( entries );
 
@@ -612,7 +612,7 @@
             "envVars:";
 
         LdifReader reader = new LdifReader();
-        List entries = reader.parseLdif( ldif );
+        List<Entry> entries = reader.parseLdif( ldif );
 
         assertNotNull( entries );
 
@@ -663,7 +663,7 @@
             "telephonenumber: +1 408 555 1212";
 
         LdifReader reader = new LdifReader();
-        List entries = reader.parseLdif( ldif );
+        List<Entry> entries = reader.parseLdif( ldif );
 
         assertEquals( 2, entries.size() );
 
@@ -736,7 +736,7 @@
             "title:Product Manager, Rod and Reel Division";
 
         LdifReader reader = new LdifReader();
-        List entries = reader.parseLdif( ldif );
+        List<Entry> entries = reader.parseLdif( ldif );
 
         assertEquals( 1, entries.size() );
 
@@ -793,7 +793,7 @@
             " b3V0IG1vcmUu";
 
         LdifReader reader = new LdifReader();
-        List entries = reader.parseLdif( ldif );
+        List<Entry> entries = reader.parseLdif( ldif );
 
         assertEquals( 1, entries.size() );
 
@@ -846,7 +846,7 @@
             " b3V0IG1vcmUu  ";
 
         LdifReader reader = new LdifReader();
-        List entries = reader.parseLdif( ldif );
+        List<Entry> entries = reader.parseLdif( ldif );
 
         assertEquals( 1, entries.size() );
 
@@ -938,7 +938,7 @@
             "title;lang-en: Sales, Director\n";
 
         LdifReader reader = new LdifReader();
-        List entries = reader.parseLdif( ldif );
+        List<Entry> entries = reader.parseLdif( ldif );
 
         String[][][] values =
             {
@@ -1028,7 +1028,7 @@
             "jpegphoto:< file:" + HJENSEN_JPEG_FILE.getAbsolutePath() + "\n";
 
         LdifReader reader = new LdifReader();
-        List entries = reader.parseLdif( ldif );
+        List<Entry> entries = reader.parseLdif( ldif );
 
         String[][] values =
             {
@@ -1178,7 +1178,7 @@
             "-\n";
 
         LdifReader reader = new LdifReader();
-        List entries = reader.parseLdif( ldif );
+        List<Entry> entries = reader.parseLdif( ldif );
 
         String[][][] values =
             {
@@ -1282,7 +1282,7 @@
 
         // Fifth entry
         entry = (Entry) entries.get( 4 );
-        List modifs = entry.getModificationItems();
+        List<ModificationItemImpl> modifs = entry.getModificationItems();
 
         assertTrue( entry.isChangeModify() );
         assertEquals( values[4][0][1], entry.getDn() );
@@ -1346,7 +1346,7 @@
             "changetype: delete\n";
 
         LdifReader reader = new LdifReader();
-        List entries = reader.parseLdif( ldif );
+        List<Entry> entries = reader.parseLdif( ldif );
 
         Entry entry = (Entry) entries.get( 0 );
 
@@ -1373,7 +1373,7 @@
             "changetype: delete\n";
 
         LdifReader reader = new LdifReader();
-        List entries = reader.parseLdif( ldif );
+        List<Entry> entries = reader.parseLdif( ldif );
 
         Entry entry = (Entry) entries.get( 0 );
 
@@ -1400,7 +1400,7 @@
             "changetype: delete\n";
 
         LdifReader reader = new LdifReader();
-        List entries = reader.parseLdif( ldif );
+        List<Entry> entries = reader.parseLdif( ldif );
 
         Entry entry = (Entry) entries.get( 0 );
 
@@ -1532,7 +1532,7 @@
             
         LdifReader reader = new LdifReader();
 
-        List entries = reader.parseLdif( ldif );
+        List<Entry> entries = reader.parseLdif( ldif );
         Entry entry = (Entry) entries.get( 0 );
 
         assertEquals( "ou=Users, dc=example, dc=com", entry.getDn() );
@@ -1589,7 +1589,7 @@
             "prescriptiveACI: { identificationTag \"browseRoot\", precedence 100, authenticationLevel
none, itemOrUserFirst userFirst: { userClasses { allUsers }, userPermissions { { protectedItems
{entry}, grantsAndDenials { grantReturnDN, grantBrowse } } } } }\n";
 
         LdifReader reader = new LdifReader();
-        List entries = reader.parseLdif( ldif );
+        List<Entry> entries = reader.parseLdif( ldif );
 
         Entry entry = (Entry) entries.get( 0 );
 

Modified: directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/ldif/LdifUtilsTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/ldif/LdifUtilsTest.java?rev=593528&r1=593527&r2=593528&view=diff
==============================================================================
--- directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/ldif/LdifUtilsTest.java
(original)
+++ directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/ldif/LdifUtilsTest.java
Fri Nov  9 06:03:41 2007
@@ -21,7 +21,6 @@
 
 import java.util.List;
 
-import javax.naming.NamingEnumeration;
 import javax.naming.NamingException;
 import javax.naming.directory.Attribute;
 import javax.naming.directory.Attributes;



Mime
View raw message