aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web/archiva-security/src/test
diff options
context:
space:
mode:
authorMartin Stockhammer <martin_s@apache.org>2020-06-26 19:40:36 +0200
committerMartin Stockhammer <martin_s@apache.org>2020-06-26 19:54:56 +0200
commit641efe3a1ff0f9c96d4b72b2ecb95170ac5f002f (patch)
tree24fe1b51128f435176fc4628a6cdd33726e566ae /archiva-modules/archiva-web/archiva-security/src/test
parent71196f3125dd747898966b9908afef047604a1a9 (diff)
downloadarchiva-641efe3a1ff0f9c96d4b72b2ecb95170ac5f002f.tar.gz
archiva-641efe3a1ff0f9c96d4b72b2ecb95170ac5f002f.zip
Dependency cleanup archiva-security
Diffstat (limited to 'archiva-modules/archiva-web/archiva-security/src/test')
-rw-r--r--archiva-modules/archiva-web/archiva-security/src/test/java/org/apache/archiva/security/AbstractSecurityTest.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/archiva-modules/archiva-web/archiva-security/src/test/java/org/apache/archiva/security/AbstractSecurityTest.java b/archiva-modules/archiva-web/archiva-security/src/test/java/org/apache/archiva/security/AbstractSecurityTest.java
index b58aae891..6487e9d23 100644
--- a/archiva-modules/archiva-web/archiva-security/src/test/java/org/apache/archiva/security/AbstractSecurityTest.java
+++ b/archiva-modules/archiva-web/archiva-security/src/test/java/org/apache/archiva/security/AbstractSecurityTest.java
@@ -19,7 +19,6 @@ package org.apache.archiva.security;
* under the License.
*/
-import com.google.common.collect.Lists;
import junit.framework.TestCase;
import net.sf.ehcache.CacheManager;
import org.apache.archiva.configuration.ArchivaConfiguration;
@@ -47,6 +46,8 @@ import javax.inject.Named;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
+import java.util.ArrayList;
+import java.util.Arrays;
/**
* AbstractSecurityTest
@@ -169,7 +170,7 @@ public abstract class AbstractSecurityTest
log.info( "ignore RbacObjectNotFoundException for id {} during restoreGuestInitialValues", userId );
return;
}
- userAssignment.setRoleNames( Lists.newArrayList( "Guest" ) );
+ userAssignment.setRoleNames( new ArrayList( Arrays.asList( "Guest" ) ) );
rbacManager.saveUserAssignment( userAssignment );
CacheManager.getInstance().clearAll();
}