aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-maven/archiva-maven-proxy/src
diff options
context:
space:
mode:
authorMartin Stockhammer <martin_s@apache.org>2020-06-05 20:09:53 +0200
committerMartin Stockhammer <martin_s@apache.org>2020-06-05 20:09:53 +0200
commite9eb36e6ded14e63ccd981a6b7c0472bc7c40f2c (patch)
tree818523e1e4a31e8ae67a0ba45bacbac8e609414e /archiva-modules/archiva-maven/archiva-maven-proxy/src
parentbc55f752baa4e1c86643b5c810279e1323c71ba8 (diff)
downloadarchiva-e9eb36e6ded14e63ccd981a6b7c0472bc7c40f2c.tar.gz
archiva-e9eb36e6ded14e63ccd981a6b7c0472bc7c40f2c.zip
Dependency cleanup for maven-proxy
Diffstat (limited to 'archiva-modules/archiva-maven/archiva-maven-proxy/src')
-rw-r--r--archiva-modules/archiva-maven/archiva-maven-proxy/src/test/java/org/apache/archiva/proxy/HttpProxyTransferTest.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/archiva-modules/archiva-maven/archiva-maven-proxy/src/test/java/org/apache/archiva/proxy/HttpProxyTransferTest.java b/archiva-modules/archiva-maven/archiva-maven-proxy/src/test/java/org/apache/archiva/proxy/HttpProxyTransferTest.java
index c48586fe6..2189614f9 100644
--- a/archiva-modules/archiva-maven/archiva-maven-proxy/src/test/java/org/apache/archiva/proxy/HttpProxyTransferTest.java
+++ b/archiva-modules/archiva-maven/archiva-maven-proxy/src/test/java/org/apache/archiva/proxy/HttpProxyTransferTest.java
@@ -36,9 +36,9 @@ import org.apache.archiva.repository.base.BasicManagedRepository;
import org.apache.archiva.repository.storage.StorageAsset;
import org.apache.archiva.test.utils.ArchivaSpringJUnit4ClassRunner;
import org.apache.commons.io.FileUtils;
+import org.apache.commons.lang3.StringUtils;
import org.apache.maven.wagon.Wagon;
import org.apache.maven.wagon.providers.http.HttpWagon;
-import org.assertj.core.api.Assertions;
import org.eclipse.jetty.server.Handler;
import org.eclipse.jetty.server.HttpConnectionFactory;
import org.eclipse.jetty.server.Request;
@@ -209,8 +209,8 @@ public class HttpProxyTransferTest
public void testGetOverHttpProxy()
throws Exception
{
- Assertions.assertThat( System.getProperty( "http.proxyHost", "" ) ).isEmpty();
- Assertions.assertThat( System.getProperty( "http.proxyPort", "" ) ).isEmpty();
+ assertTrue( StringUtils.isEmpty( System.getProperty( "http.proxyHost" , "" ) ));
+ assertTrue( StringUtils.isEmpty( System.getProperty( "http.proxyPort", "" ) ) );
String path = "org/apache/maven/test/get-default-layout/1.0/get-default-layout-1.0.jar";
@@ -239,8 +239,8 @@ public class HttpProxyTransferTest
String actualContents = FileUtils.readFileToString( downloadedFile.getFilePath().toFile(), Charset.defaultCharset() );
assertEquals( "Check file contents.", expectedContents, actualContents );
- Assertions.assertThat( System.getProperty( "http.proxyHost" , "") ).isEmpty();
- Assertions.assertThat( System.getProperty( "http.proxyPort" , "") ).isEmpty();
+ assertTrue( StringUtils.isEmpty( System.getProperty( "http.proxyHost", "" ) ) );
+ assertTrue( StringUtils.isEmpty( System.getProperty( "http.proxyPort" , "") ) );
}
private void addConnector()