diff options
author | Martin Stockhammer <martin_s@apache.org> | 2019-09-03 14:40:22 +0200 |
---|---|---|
committer | Martin Stockhammer <martin_s@apache.org> | 2019-09-03 14:40:22 +0200 |
commit | ebf95723a5399535ff8175121625e933d99a27c0 (patch) | |
tree | 044ba96be2dd0343e577eaeb740f773f711af113 /archiva-modules/archiva-base/archiva-repository-admin | |
parent | c7fb08d2cb8b8fac9e36707e03369c5e83def7a6 (diff) | |
download | archiva-ebf95723a5399535ff8175121625e933d99a27c0.tar.gz archiva-ebf95723a5399535ff8175121625e933d99a27c0.zip |
Modifying NetworkProxy class. Adding tests.
Diffstat (limited to 'archiva-modules/archiva-base/archiva-repository-admin')
-rw-r--r-- | archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/test/java/org/apache/archiva/admin/mock/ArchivaIndexManagerMock.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/test/java/org/apache/archiva/admin/mock/ArchivaIndexManagerMock.java b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/test/java/org/apache/archiva/admin/mock/ArchivaIndexManagerMock.java index 9e00e19ad..e34bc3a21 100644 --- a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/test/java/org/apache/archiva/admin/mock/ArchivaIndexManagerMock.java +++ b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/test/java/org/apache/archiva/admin/mock/ArchivaIndexManagerMock.java @@ -316,7 +316,7 @@ public class ArchivaIndexManagerMock implements ArchivaIndexManager { proxyInfo.setHost( networkProxy.getHost( ) ); proxyInfo.setPort( networkProxy.getPort( ) ); proxyInfo.setUserName( networkProxy.getUsername( ) ); - proxyInfo.setPassword( networkProxy.getPassword( ) ); + proxyInfo.setPassword(new String(networkProxy.getPassword())); } AuthenticationInfo authenticationInfo = null; if ( remoteRepository.getLoginCredentials( ) != null && ( remoteRepository.getLoginCredentials( ) instanceof PasswordCredentials) ) |