Home | History | Annotate | Download | only in config

Lines Matching refs:port

36     public static void assertConnectionFails(SSLContext context, String host, int port)
39 Socket s = context.getSocketFactory().createSocket(host, port);
41 fail("Expected connection to " + host + ":" + port + " to fail.");
46 public static void assertConnectionSucceeds(SSLContext context, String host, int port)
48 Socket s = context.getSocketFactory().createSocket(host, port);
52 public static void assertUrlConnectionFails(SSLContext context, String host, int port)
54 URL url = new URL("https://" + host + ":" + port);
59 fail("Connection to " + host + ":" + port + " expected to fail");
65 public static void assertUrlConnectionSucceeds(SSLContext context, String host, int port)
67 URL url = new URL("https://" + host + ":" + port);