equal
deleted
inserted
replaced
25 * |
25 * |
26 */ |
26 */ |
27 |
27 |
28 import java.io.*; |
28 import java.io.*; |
29 import java.net.*; |
29 import java.net.*; |
30 import java.nio.*; |
|
31 import java.nio.channels.*; |
30 import java.nio.channels.*; |
32 import java.util.Random; |
31 import java.util.Random; |
33 |
32 |
34 |
33 |
35 public class TestUtil { |
34 public class TestUtil { |
36 |
35 |
37 // Test hosts used by the channels tests - change these when |
36 // Test hosts used by the channels tests - change these when |
38 // executing in a different network. |
37 // executing in a different network. |
39 public static final String HOST = "javaweb.sfbay.sun.com"; |
|
40 public static final String REFUSING_HOST = "jano1.sfbay.sun.com"; |
|
41 public static final String FAR_HOST = "irejano.ireland.sun.com"; |
|
42 public static final String UNRESOLVABLE_HOST = "blah-blah.blah-blah.blah"; |
38 public static final String UNRESOLVABLE_HOST = "blah-blah.blah-blah.blah"; |
43 |
39 |
44 private TestUtil() { } |
40 private TestUtil() { } |
45 |
41 |
46 // Repeatedly try random ports until we bind to one. You might be tempted |
42 // Repeatedly try random ports until we bind to one. You might be tempted |