Пример #1
0
 /** Method: getTargetSslContext() */
 @Test
 public void testGetTargetSslContextNoKeyStorePathException() throws Exception {
   thrown.expect(ConfigurationException.class);
   thrown.expectMessage("No target KeyStore path has been set");
   conf.getTargetSslContext();
 }
Пример #2
0
 /** Method: getProxySslContext() */
 @Test
 public void testGetProxySslContextDefaultNoException() throws Exception {
   conf.getProxySslContext();
 }
Пример #3
0
 /** Method: getTargetSslContext() */
 @Test
 public void testGetTargetSslContextNoException() throws Exception {
   conf.setTargetKeyStorePath(CERT_CLIENT).setTargetKeyStoreType(CERT_CLIENT_TYPE);
   conf.getTargetSslContext();
 }