Add method to register listener for unknown msg
[openflowjava.git] / openflow-protocol-impl / src / test / java / org / opendaylight / openflowjava / protocol / impl / core / SslContextFactoryTest.java
index 2c45c0b0c25a718325cc8e8b85a91ba7d5ba158e..c73f6c638ba6ff771efa3e110f8cb53eedd4bea3 100644 (file)
@@ -20,6 +20,8 @@ import org.opendaylight.openflowjava.protocol.api.connection.TlsConfigurationImp
 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
@@ -35,13 +37,14 @@ public class SslContextFactoryTest {
     @Before
     public void setUp() {
         MockitoAnnotations.initMocks(this);
-        tlsConfiguration = new TlsConfigurationImpl(KeystoreType.JKS, "/ctlTrustStore",
-                PathType.CLASSPATH, KeystoreType.JKS, "/ctlKeystore", PathType.CLASSPATH) ;
+        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 {