@Test public void checkServerTrusted1() throws Exception { instance.checkServerTrusted(new X509Certificate[]{cert.certificate()}, "RSA", new Socket()); }
@Test(expected = IllegalArgumentException.class) public void checkServerTrusted1_nonNullEmpty() throws Exception { instance.checkServerTrusted(new X509Certificate[]{cert.certificate()}, "", new Socket()); }
@Test(expected = CertificateException.class) public void checkServerUntrusted1() throws Exception { instance.checkServerTrusted(new X509Certificate[]{altCert.certificate()}, "RSA", new Socket()); }
@Test public void checkClientTrusted1() throws Exception { instance.checkClientTrusted(new X509Certificate[]{cert.certificate()}, "RSA", new Socket()); }
@Test public void checkClientTrusted1() throws Exception { instance.checkClientTrusted(new X509Certificate[]{cert.certificate()}, "RSA", new Socket()); }
@Test(expected = IllegalArgumentException.class) public void checkClientTrusted1_nonNullNull() throws Exception { instance.checkClientTrusted(new X509Certificate[]{cert.certificate()}, null, new Socket()); }
@Test(expected = IllegalArgumentException.class) public void checkClientTrusted_nonNullEmpty() throws Exception { instance.checkClientTrusted(new X509Certificate[]{cert.certificate()}, ""); }
@Test public void checkServerTrusted2() throws Exception { instance.checkServerTrusted(new X509Certificate[]{cert.certificate()}, "RSA", (SSLEngine)null); }
@Test(expected = CertificateException.class) public void checkClientExpired() throws Exception { instance.checkClientTrusted(new X509Certificate[]{expired.certificate()}, "RSA"); }
@Test(expected = IllegalArgumentException.class) public void checkClientTrusted_nonNullEmpty() throws Exception { instance.checkClientTrusted(new X509Certificate[]{cert.certificate()}, ""); }
@Test(expected = IllegalArgumentException.class) public void checkServerTrusted_nonNullNull() throws Exception { instance.checkServerTrusted(new X509Certificate[]{cert.certificate()}, null); }
@Test public void checkServerTrusted2() throws Exception { instance.checkServerTrusted(new X509Certificate[]{cert.certificate()}, "RSA", (SSLEngine)null); }
@Test public void checkClientTrusted() throws Exception { instance.checkClientTrusted(new X509Certificate[]{cert.certificate()}, "RSA"); }
@Test(expected = IllegalArgumentException.class) public void checkServerTrusted2_nonNullEmpty() throws Exception { instance.checkServerTrusted(new X509Certificate[]{cert.certificate()}, "", (SSLEngine)null); }
@Test(expected = CertificateException.class) public void checkServerExpired() throws Exception { instance.checkServerTrusted(new X509Certificate[]{expired.certificate()}, "RSA"); }
@Test(expected = CertificateException.class) public void checkClientExpired2() throws Exception { instance.checkClientTrusted(new X509Certificate[]{expired.certificate()}, "RSA", (SSLEngine)null); }
@Test(expected = CertificateException.class) public void checkServerExpired2() throws Exception { instance.checkServerTrusted(new X509Certificate[]{expired.certificate()}, "RSA", (SSLEngine)null); }
@Test public void checkServerTrusted() throws Exception { instance.checkServerTrusted(new X509Certificate[]{cert.certificate()}, "RSA"); }
@Test(expected = IllegalArgumentException.class) public void checkServerTrusted2_nonNullEmpty() throws Exception { instance.checkServerTrusted(new X509Certificate[]{cert.certificate()}, "", (SSLEngine)null); }
@Test public void checkServerTrusted2() throws Exception { instance.checkServerTrusted(new X509Certificate[]{cert.certificate()}, "RSA", (SSLEngine)null); }