8145732: Duplicate entry in http.nonProxyHosts will ignore subsequent entries

Test update to explicitly cover problematic scenario.

Reviewed-by: chegar
This commit is contained in:
Svetlana Nikandrova 2016-08-12 20:14:25 +03:00
parent 7ccd401ac7
commit dac6760af7

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -22,7 +22,7 @@
*/
/*
* @test
* @bug 8035158
* @bug 8035158 8145732
* @run main/othervm B8035158
*/
@ -94,6 +94,8 @@ public class B8035158 {
false));
t.add(new TestCase("google.com|google.ie", "http://google.ie",
false));
t.add(new TestCase("google.com|google.com|google.ie",
"http://google.ie", false));
t.add(new TestCase("google.com|bing.com|yahoo.com",
"http://127.0.0.1", false));