@Test(expected = IllegalArgumentException.class) public void checkClientTrusted1_nullNonNull() throws Exception { instance.checkClientTrusted(null, "RSA", new Socket()); }
@Test(expected = IllegalArgumentException.class) public void checkClientTrusted_nullNonNull() throws Exception { instance.checkClientTrusted(null, "RSA"); }
@Test(expected = IllegalArgumentException.class) public void checkClientTrusted2_nullNonNull() throws Exception { instance.checkClientTrusted(null, "RSA", (SSLEngine)null); }
@Test public void checkClientTrusted1() throws Exception { instance.checkClientTrusted(new X509Certificate[]{cert.certificate()}, "RSA", new Socket()); }
@Test(expected = IllegalArgumentException.class) public void checkClientTrusted1_nonNullEmpty() throws Exception { instance.checkClientTrusted(new X509Certificate[]{cert.certificate()}, "", new Socket()); }
@Test(expected = IllegalArgumentException.class) public void checkClientTrusted1_nonNullNull() throws Exception { instance.checkClientTrusted(new X509Certificate[]{cert.certificate()}, null, new Socket()); }
@Test(expected = CertificateException.class) public void checkClientUntrusted1() throws Exception { instance.checkClientTrusted(new X509Certificate[]{altCert.certificate()}, "RSA", new Socket()); }
@Test public void checkClientTrusted() throws Exception { instance.checkClientTrusted(new X509Certificate[]{cert.certificate()}, "RSA"); }
@Test(expected = IllegalArgumentException.class) public void checkClientTrusted_nonNullNull() throws Exception { instance.checkClientTrusted(new X509Certificate[]{cert.certificate()}, null); }
@Test(expected = IllegalArgumentException.class) public void checkClientTrusted_nonNullEmpty() throws Exception { instance.checkClientTrusted(new X509Certificate[]{cert.certificate()}, ""); }
@Test public void checkClientTrusted2() throws Exception { instance.checkClientTrusted(new X509Certificate[]{cert.certificate()}, "RSA", (SSLEngine)null); }
@Test(expected = CertificateException.class) public void checkClientUntrusted2() throws Exception { instance.checkClientTrusted(new X509Certificate[]{altCert.certificate()}, "RSA", (SSLEngine)null); }
@Test(expected = IllegalArgumentException.class) public void checkClientTrusted2_nonNullNull() throws Exception { instance.checkClientTrusted(new X509Certificate[]{cert.certificate()}, null, (SSLEngine)null); }
@Test(expected = IllegalArgumentException.class) public void checkClientTrusted2_nonNullEmpty() throws Exception { instance.checkClientTrusted(new X509Certificate[]{cert.certificate()}, "", (SSLEngine)null); }
@Test(expected = CertificateException.class) public void checkClientUntrusted() throws Exception { instance.checkClientTrusted(new X509Certificate[]{altCert.certificate()}, "RSA"); }