diff options
author | Olivier Lamy <olamy@apache.org> | 2014-04-17 09:57:30 +1000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2014-04-17 09:57:30 +1000 |
commit | bb3014071965a7a620284886aa3ccf96b7aa6d0e (patch) | |
tree | 863a676d9588f9b09c530350b519aaa0ee9ebdd2 /archiva-modules/archiva-base/archiva-configuration/src | |
parent | b2ebfd6cc257b7040644dc52e38aa5b8c4faaa4e (diff) | |
download | archiva-bb3014071965a7a620284886aa3ccf96b7aa6d0e.tar.gz archiva-bb3014071965a7a620284886aa3ccf96b7aa6d0e.zip |
using more java.nio.file
Diffstat (limited to 'archiva-modules/archiva-base/archiva-configuration/src')
-rw-r--r-- | archiva-modules/archiva-base/archiva-configuration/src/test/java/org/apache/archiva/configuration/MavenProxyPropertyLoaderTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/archiva-modules/archiva-base/archiva-configuration/src/test/java/org/apache/archiva/configuration/MavenProxyPropertyLoaderTest.java b/archiva-modules/archiva-base/archiva-configuration/src/test/java/org/apache/archiva/configuration/MavenProxyPropertyLoaderTest.java index 88884f838..0b6ffc2a8 100644 --- a/archiva-modules/archiva-base/archiva-configuration/src/test/java/org/apache/archiva/configuration/MavenProxyPropertyLoaderTest.java +++ b/archiva-modules/archiva-base/archiva-configuration/src/test/java/org/apache/archiva/configuration/MavenProxyPropertyLoaderTest.java @@ -22,6 +22,7 @@ package org.apache.archiva.configuration; import java.io.File; import java.io.FileInputStream; import java.io.IOException; +import java.nio.file.Files; import java.util.Map; import java.util.Properties; import org.apache.archiva.test.utils.ArchivaBlockJUnit4ClassRunner; @@ -48,7 +49,7 @@ public class MavenProxyPropertyLoaderTest proxy.setHost( "original-host" ); configuration.addNetworkProxy( proxy ); // overwritten - loader.load( new FileInputStream( confFile ), configuration ); + loader.load( Files.newInputStream(confFile.toPath()), configuration ); Map<String, ManagedRepositoryConfiguration> repositoryIdMap = configuration.getManagedRepositoriesAsMap(); assertEquals( "Count repositories", 1, repositoryIdMap.size() ); |