Remove trailing whitespace
[openflowjava.git] / openflow-protocol-impl / src / test / java / org / opendaylight / openflowjava / protocol / impl / core / SslKeyStoreTest.java
index 7c871bbd56260c01477b394fd26d315058cca6f4..c2a13df8a1b546f7adf242a7f3684d08aa7b351a 100644 (file)
@@ -9,7 +9,6 @@
 package org.opendaylight.openflowjava.protocol.impl.core;
 
 import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertTrue;
 
 import java.io.InputStream;
 
@@ -33,33 +32,24 @@ public class SslKeyStoreTest {
     }
 
     /**
-     * Test keystore file access
-     * @throws Exception 
+     * Test keystore file access - via classpath
+     * @throws Exception
      */
     @Test
     public void testAsInputStream() throws Exception {
-        InputStream inputStream = SslKeyStore.asInputStream("src/main/resources/key.bin", PathType.PATH);
+        InputStream inputStream = SslKeyStore.asInputStream("/key.bin", PathType.CLASSPATH);
         assertNotNull( inputStream );
         inputStream.close();
     }
 
     /**
-     * Test certificate password retrieval
+     * Test keystore file access - via relative path
+     * @throws Exception
      */
     @Test
-    public void testGetCertificatePassword() {
-        char[] password = SslKeyStore.getCertificatePassword();
-        assertNotNull(password);
-        assertTrue (password.length>0) ;
-    }
-
-    /**
-     * Test keystore password retrieval
-     */
-    @Test
-    public void testGetKeyStorePassword() {
-        char[] password = SslKeyStore.getKeyStorePassword() ;
-        assertNotNull(password);
-        assertTrue (password.length>0) ;
+    public void testAsInputStream2() throws Exception {
+        InputStream inputStream = SslKeyStore.asInputStream("src/test/resources/key.bin", PathType.PATH);
+        assertNotNull( inputStream );
+        inputStream.close();
     }
-}
\ No newline at end of file
+}