diff --git a/httpclient/src/test/java/org/apache/http/localserver/LocalTestServer.java b/httpclient/src/test/java/org/apache/http/localserver/LocalTestServer.java index 88768b5b2..40d085233 100644 --- a/httpclient/src/test/java/org/apache/http/localserver/LocalTestServer.java +++ b/httpclient/src/test/java/org/apache/http/localserver/LocalTestServer.java @@ -310,7 +310,7 @@ public class LocalTestServer { */ public InetSocketAddress getServiceAddress() { final ServerSocket ssock = servicedSocket; // avoid synchronization - Asserts.check(ssock != null, "Not running"); + Asserts.notNull(ssock, "Not running"); return (InetSocketAddress) ssock.getLocalSocketAddress(); }