directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r572198 - in /directory/apacheds/trunk/core/src/test/java/org/apache/directory/server/core: authz/support/MaxImmSubFilterTest.java authz/support/MostSpecificUserClassFilterTest.java interceptor/MockInterceptor.java
Date Mon, 03 Sep 2007 00:04:30 GMT
Author: elecharny
Date: Sun Sep  2 17:04:29 2007
New Revision: 572198

URL: http://svn.apache.org/viewvc?rev=572198&view=rev
Log:
Removed useless imports
Fixed some warning by using generic

Modified:
    directory/apacheds/trunk/core/src/test/java/org/apache/directory/server/core/authz/support/MaxImmSubFilterTest.java
    directory/apacheds/trunk/core/src/test/java/org/apache/directory/server/core/authz/support/MostSpecificUserClassFilterTest.java
    directory/apacheds/trunk/core/src/test/java/org/apache/directory/server/core/interceptor/MockInterceptor.java

Modified: directory/apacheds/trunk/core/src/test/java/org/apache/directory/server/core/authz/support/MaxImmSubFilterTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/test/java/org/apache/directory/server/core/authz/support/MaxImmSubFilterTest.java?rev=572198&r1=572197&r2=572198&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/test/java/org/apache/directory/server/core/authz/support/MaxImmSubFilterTest.java
(original)
+++ directory/apacheds/trunk/core/src/test/java/org/apache/directory/server/core/authz/support/MaxImmSubFilterTest.java
Sun Sep  2 17:04:29 2007
@@ -40,7 +40,6 @@
 import org.apache.directory.server.core.DirectoryService;
 import org.apache.directory.server.core.DirectoryServiceConfiguration;
 import org.apache.directory.server.core.DirectoryServiceListener;
-import org.apache.directory.server.core.interceptor.context.OperationContext;
 import org.apache.directory.server.core.interceptor.context.SearchOperationContext;
 import org.apache.directory.server.core.jndi.DeadContext;
 import org.apache.directory.server.core.partition.PartitionNexusProxy;

Modified: directory/apacheds/trunk/core/src/test/java/org/apache/directory/server/core/authz/support/MostSpecificUserClassFilterTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/test/java/org/apache/directory/server/core/authz/support/MostSpecificUserClassFilterTest.java?rev=572198&r1=572197&r2=572198&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/test/java/org/apache/directory/server/core/authz/support/MostSpecificUserClassFilterTest.java
(original)
+++ directory/apacheds/trunk/core/src/test/java/org/apache/directory/server/core/authz/support/MostSpecificUserClassFilterTest.java
Sun Sep  2 17:04:29 2007
@@ -48,11 +48,11 @@
     private static final Collection EMPTY_COLLECTION = Collections.unmodifiableCollection(
new ArrayList() );
     private static final Set EMPTY_SET = Collections.unmodifiableSet( new HashSet() );
 
-    private static final List TUPLES_A = new ArrayList();
-    private static final List TUPLES_B = new ArrayList();
-    private static final List TUPLES_C = new ArrayList();
-    private static final List TUPLES_D = new ArrayList();
-    private static final List TUPLES_E = new ArrayList();
+    private static final List<ACITuple> TUPLES_A = new ArrayList<ACITuple>();
+    private static final List<ACITuple> TUPLES_B = new ArrayList<ACITuple>();
+    private static final List<ACITuple> TUPLES_C = new ArrayList<ACITuple>();
+    private static final List<ACITuple> TUPLES_D = new ArrayList<ACITuple>();
+    private static final List<ACITuple> TUPLES_E = new ArrayList<ACITuple>();
 
     static
     {
@@ -118,8 +118,8 @@
     {
         MostSpecificUserClassFilter filter = new MostSpecificUserClassFilter();
 
-        List tuples = new ArrayList( TUPLES_A );
-        tuples = ( List ) filter.filter( tuples, OperationScope.ENTRY, null, null, null,
null, null, null, null, null,
+        List<ACITuple> tuples = new ArrayList<ACITuple>( TUPLES_A );
+        tuples = ( List<ACITuple> ) filter.filter( tuples, OperationScope.ENTRY, null,
null, null, null, null, null, null, null,
             null, null );
 
         Assert.assertEquals( 2, tuples.size() );
@@ -132,8 +132,8 @@
     {
         MostSpecificUserClassFilter filter = new MostSpecificUserClassFilter();
 
-        List tuples = new ArrayList( TUPLES_B );
-        tuples = ( List ) filter.filter( tuples, OperationScope.ENTRY, null, null, null,
null, null, null, null, null,
+        List<ACITuple> tuples = new ArrayList<ACITuple>( TUPLES_B );
+        tuples = ( List<ACITuple> ) filter.filter( tuples, OperationScope.ENTRY, null,
null, null, null, null, null, null, null,
             null, null );
 
         Assert.assertEquals( 1, tuples.size() );
@@ -145,8 +145,8 @@
     {
         MostSpecificUserClassFilter filter = new MostSpecificUserClassFilter();
 
-        List tuples = new ArrayList( TUPLES_C );
-        tuples = ( List ) filter.filter( tuples, OperationScope.ENTRY, null, null, null,
null, null, null, null, null,
+        List<ACITuple> tuples = new ArrayList<ACITuple>( TUPLES_C );
+        tuples = ( List<ACITuple> ) filter.filter( tuples, OperationScope.ENTRY, null,
null, null, null, null, null, null, null,
             null, null );
 
         Assert.assertEquals( 1, tuples.size() );
@@ -158,8 +158,8 @@
     {
         MostSpecificUserClassFilter filter = new MostSpecificUserClassFilter();
 
-        List tuples = new ArrayList( TUPLES_D );
-        tuples = ( List ) filter.filter( tuples, OperationScope.ENTRY, null, null, null,
null, null, null, null, null,
+        List<ACITuple> tuples = new ArrayList<ACITuple>( TUPLES_D );
+        tuples = ( List<ACITuple> ) filter.filter( tuples, OperationScope.ENTRY, null,
null, null, null, null, null, null, null,
             null, null );
 
         Assert.assertEquals( 1, tuples.size() );

Modified: directory/apacheds/trunk/core/src/test/java/org/apache/directory/server/core/interceptor/MockInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/test/java/org/apache/directory/server/core/interceptor/MockInterceptor.java?rev=572198&r1=572197&r2=572198&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/test/java/org/apache/directory/server/core/interceptor/MockInterceptor.java
(original)
+++ directory/apacheds/trunk/core/src/test/java/org/apache/directory/server/core/interceptor/MockInterceptor.java
Sun Sep  2 17:04:29 2007
@@ -44,7 +44,6 @@
 import org.apache.directory.server.core.interceptor.context.ModifyOperationContext;
 import org.apache.directory.server.core.interceptor.context.MoveAndRenameOperationContext;
 import org.apache.directory.server.core.interceptor.context.MoveOperationContext;
-import org.apache.directory.server.core.interceptor.context.OperationContext;
 import org.apache.directory.server.core.interceptor.context.RemoveContextPartitionOperationContext;
 import org.apache.directory.server.core.interceptor.context.RenameOperationContext;
 import org.apache.directory.server.core.interceptor.context.SearchOperationContext;



Mime
View raw message