createJettySslListenerConfigurer(sslServerPolicy,
"https://dummyurl",
handler);
jettySslListenerConfigurer.configure();
SslListener sslListener =
jettySslListenerConfigurer.getSslListener();
assertTrue("Keystore not set properly, sslListener.getKeystore() = " + sslListener.getKeystore(),
sslListener.getKeystore().contains(".keystore"));
String trustStr = System.getProperty("javax.net.ssl.trustStore");
assertTrue("Trust store loaded success message not present",
trustStr.contains("cacerts"));
assertTrue("Keystore type not being read",
sslListener.getKeystoreType().equals("JKS"));
assertTrue("Keystore password not being read",
sslServerPolicy.getKeystorePassword().equals("defaultkeypass"));
assertTrue("Key password not being read",
sslServerPolicy.getKeyPassword().equals("defaultkeypass"));
assertTrue("Ciphersuites is being being read from somewhere unknown",
sslListener.getCipherSuites() == null);
assertTrue("Truststore type not being read",
handler.checkLogContainsString("Unsupported SSLServerPolicy property : "
+ "TrustStoreType"));
assertTrue("Secure socket protocol not being read",