diff options
author | Olivier Lamy <olamy@apache.org> | 2014-04-16 17:36:01 +1000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2014-04-16 17:36:01 +1000 |
commit | 767e00c182085b193c9f2481a815e90c5c054095 (patch) | |
tree | 9abbd1c82b82718acf3373bb719d3f38f7667ee5 /archiva-modules/archiva-web/archiva-web-common | |
parent | 67985e0486f4c0d4fb65ca0859201d70e91703b5 (diff) | |
download | archiva-767e00c182085b193c9f2481a815e90c5c054095.tar.gz archiva-767e00c182085b193c9f2481a815e90c5c054095.zip |
use Files from java.nio
Diffstat (limited to 'archiva-modules/archiva-web/archiva-web-common')
-rw-r--r-- | archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/remotedownload/RemoteRepositoryConnectivityCheckTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/remotedownload/RemoteRepositoryConnectivityCheckTest.java b/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/remotedownload/RemoteRepositoryConnectivityCheckTest.java index 1b15f06e0..fabe56808 100644 --- a/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/remotedownload/RemoteRepositoryConnectivityCheckTest.java +++ b/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/remotedownload/RemoteRepositoryConnectivityCheckTest.java @@ -19,7 +19,6 @@ package org.apache.archiva.remotedownload; * under the License. */ -import com.google.common.io.Files; import org.apache.archiva.admin.model.beans.RemoteRepository; import org.apache.archiva.rest.api.services.RemoteRepositoriesService; import org.apache.commons.io.FileUtils; @@ -34,6 +33,7 @@ import org.junit.BeforeClass; import org.junit.Test; import java.io.File; +import java.nio.file.Files; import static org.assertj.core.api.Assertions.assertThat; @@ -102,7 +102,7 @@ public class RemoteRepositoryConnectivityCheckTest throws Exception { - File tmpDir = Files.createTempDir(); + File tmpDir = Files.createTempDirectory( "test" ).toFile(); Server repoServer = buildStaticServer( tmpDir ); repoServer.start(); |