If the logger is currently enabled for the FINE message level then the given message is forwarded to all the registered output Handler objects.
@param msg The string message (or a key in the message catalog)
238239240241242243244245246247248
System.out.println("testHttpClientWithAuthMissingPassword"); Logger LOG = Logger.getLogger("org.xlightweb.test"); LOG.fine("start proxy"); HttpProxy2 proxy = new HttpProxy2(true); proxy.start(); HttpClient httpClient = new HttpClient();
250251252253254255256257258259260
httpClient.setProxyPort(proxy.getLocalPort()); httpClient.setProxyUser("test"); try { LOG.fine("call"); httpClient.call(new GetRequest("http://www.amazon.de/")); Assert.fail("IOException expected"); } catch (IOException expected) { }
256257258259260261262263264265266
httpClient.call(new GetRequest("http://www.amazon.de/")); Assert.fail("IOException expected"); } catch (IOException expected) { } LOG.fine("returned"); httpClient.close(); proxy.close(); }
208209210211212213214215216217218
220221222223224225226227228229230
226227228229230231232233234235236
207208209210211212213214215216217
219220221222223224225226227228229
225226227228229230231232233234235