equal
deleted
inserted
replaced
155 .build(); |
155 .build(); |
156 |
156 |
157 String defaultCharset = System.getProperty("file.encoding"); |
157 String defaultCharset = System.getProperty("file.encoding"); |
158 boolean isUTF8 = defaultCharset.equalsIgnoreCase("UTF-8"); |
158 boolean isUTF8 = defaultCharset.equalsIgnoreCase("UTF-8"); |
159 testHandler = new Handler(); |
159 testHandler = new Handler(); |
160 InetSocketAddress addr = new InetSocketAddress(0); |
160 InetSocketAddress addr = new InetSocketAddress(InetAddress.getLoopbackAddress(), 0); |
161 testHttpServer = HttpServer.create(addr, 0); |
161 testHttpServer = HttpServer.create(addr, 0); |
162 |
162 |
163 // Set the passing credentials OLD client |
163 // Set the passing credentials OLD client |
164 setAuthenticationPW("/old/test1/", "passingCharset@test.realm", UNICODE_PW, UTF_8); |
164 setAuthenticationPW("/old/test1/", "passingCharset@test.realm", UNICODE_PW, UTF_8); |
165 setAuthenticationPW("/old/test2/", "failingCharset@test.realm", UNICODE_PW, ISO_8859_1); |
165 setAuthenticationPW("/old/test2/", "failingCharset@test.realm", UNICODE_PW, ISO_8859_1); |