diff options
author | Olivier Lamy <olamy@apache.org> | 2014-04-14 14:08:55 +1000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2014-04-14 14:08:55 +1000 |
commit | a7a2c9130e30992d3d5dc4e6edac5d1d51034458 (patch) | |
tree | 599ddbeac8fb12a515909bb20d36af9b5d5d74b5 /archiva-modules/archiva-base/archiva-proxy | |
parent | 64187aa84a22b6721069500239c94a729f1b9add (diff) | |
download | archiva-a7a2c9130e30992d3d5dc4e6edac5d1d51034458.tar.gz archiva-a7a2c9130e30992d3d5dc4e6edac5d1d51034458.zip |
[MRM-1828] upgrade to jetty 9.x
Diffstat (limited to 'archiva-modules/archiva-base/archiva-proxy')
-rw-r--r-- | archiva-modules/archiva-base/archiva-proxy/src/test/java/org/apache/archiva/proxy/HttpProxyTransferTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/archiva-modules/archiva-base/archiva-proxy/src/test/java/org/apache/archiva/proxy/HttpProxyTransferTest.java b/archiva-modules/archiva-base/archiva-proxy/src/test/java/org/apache/archiva/proxy/HttpProxyTransferTest.java index b96a261ed..92e34c8de 100644 --- a/archiva-modules/archiva-base/archiva-proxy/src/test/java/org/apache/archiva/proxy/HttpProxyTransferTest.java +++ b/archiva-modules/archiva-base/archiva-proxy/src/test/java/org/apache/archiva/proxy/HttpProxyTransferTest.java @@ -39,6 +39,7 @@ import org.apache.archiva.repository.ManagedRepositoryContent; import org.eclipse.jetty.server.Handler; import org.eclipse.jetty.server.Request; import org.eclipse.jetty.server.Server; +import org.eclipse.jetty.server.ServerConnector; import org.eclipse.jetty.server.handler.AbstractHandler; import org.junit.After; import org.junit.Before; @@ -167,7 +168,7 @@ public class HttpProxyTransferTest server.setHandler( handler ); server.start(); - int port = server.getConnectors()[0].getLocalPort(); + int port = ServerConnector.class.cast( server.getConnectors()[0] ).getLocalPort(); NetworkProxyConfiguration proxyConfig = new NetworkProxyConfiguration(); proxyConfig.setHost( "localhost" ); |