jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r828702 - /jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/AccessManagerTest.java
Date Thu, 22 Oct 2009 14:03:30 GMT
Author: angela
Date: Thu Oct 22 14:03:30 2009
New Revision: 828702

URL: http://svn.apache.org/viewvc?rev=828702&view=rev
Log:
Use Java 1.5 and Generics

Modified:
    jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/AccessManagerTest.java

Modified: jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/AccessManagerTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/AccessManagerTest.java?rev=828702&r1=828701&r2=828702&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/AccessManagerTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/AccessManagerTest.java
Thu Oct 22 14:03:30 2009
@@ -186,8 +186,8 @@
         Session s = getHelper().getReadOnlySession();
         try {
             String[] wspNames = s.getWorkspace().getAccessibleWorkspaceNames();
-            for (int i = 0; i < wspNames.length; i++) {
-                assertTrue(getAccessManager(s).canAccess(wspNames[i]));
+            for (String wspName : wspNames) {
+                assertTrue(getAccessManager(s).canAccess(wspName));
             }
         } finally {
             s.logout();
@@ -214,7 +214,7 @@
     public void testCanAccessNotExistingWorkspace() throws RepositoryException, NotExecutableException
{
         Session s = getHelper().getReadOnlySession();
         try {
-            List all = Arrays.asList(s.getWorkspace().getAccessibleWorkspaceNames());
+            List<String> all = Arrays.asList(s.getWorkspace().getAccessibleWorkspaceNames());
             String testName = "anyWorkspace";
             int i = 0;
             while (all.contains(testName)) {



Mime
View raw message