import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.config.rev140630.KeystoreType;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.config.rev140630.PathType;
+import com.google.common.collect.Lists;
+
/**
*
* @author jameshall
@Before
public void setUp() {
MockitoAnnotations.initMocks(this);
- tlsConfiguration = new TlsConfigurationImpl(KeystoreType.JKS, "src/main/resources/ctlTrustStore",
- PathType.PATH, KeystoreType.JKS, "src/main/resources/ctlKeystore", PathType.PATH) ;
+ tlsConfiguration = new TlsConfigurationImpl(KeystoreType.JKS, "/exemplary-ctlTrustStore",
+ PathType.CLASSPATH, KeystoreType.JKS, "/exemplary-ctlKeystore", PathType.CLASSPATH,
+ Lists.newArrayList("TLS_RSA_WITH_AES_128_CBC_SHA", "TLS_RSA_WITH_AES_128_CBC_SHA256")) ;
sslContextFactory = new SslContextFactory(tlsConfiguration);
}
/**
- * @throws Exception
+ * @throws Exception
*/
@Test
public void testGetServerContext() throws Exception {