directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r471659 - /directory/branches/apacheds-schema/apacheds/core-unit/src/main/java/org/apache/directory/server/core/unit/AbstractTestCase.java
Date Mon, 06 Nov 2006 07:31:37 GMT
Author: elecharny
Date: Sun Nov  5 23:31:36 2006
New Revision: 471659

URL: http://svn.apache.org/viewvc?view=rev&rev=471659
Log:
Used generic

Modified:
    directory/branches/apacheds-schema/apacheds/core-unit/src/main/java/org/apache/directory/server/core/unit/AbstractTestCase.java

Modified: directory/branches/apacheds-schema/apacheds/core-unit/src/main/java/org/apache/directory/server/core/unit/AbstractTestCase.java
URL: http://svn.apache.org/viewvc/directory/branches/apacheds-schema/apacheds/core-unit/src/main/java/org/apache/directory/server/core/unit/AbstractTestCase.java?view=diff&rev=471659&r1=471658&r2=471659
==============================================================================
--- directory/branches/apacheds-schema/apacheds/core-unit/src/main/java/org/apache/directory/server/core/unit/AbstractTestCase.java
(original)
+++ directory/branches/apacheds-schema/apacheds/core-unit/src/main/java/org/apache/directory/server/core/unit/AbstractTestCase.java
Sun Nov  5 23:31:36 2006
@@ -86,7 +86,7 @@
     protected MutableStartupConfiguration configuration = new MutableStartupConfiguration();
 
     /** A testEntries of entries as Attributes to add to the DIT for testing */
-    protected List testEntries = new ArrayList();
+    protected List<Entry> testEntries = new ArrayList<Entry>();
 
     /** An optional LDIF file path if set and present is read to add more test entries */
     private String ldifPath;
@@ -151,9 +151,9 @@
 
         LdifReader reader = new LdifReader();
         
-    	List entries = reader.parseLdif( LDIF );
+    	List<Entry> entries = reader.parseLdif( LDIF );
         
-        Entry entry = (Entry)entries.get(0);
+        Entry entry = entries.get(0);
 
         testEntries.add( entry );
 



Mime
View raw message