******************************************************************************/
package org.onap.aaf.cadi.test;
-import static org.mockito.Matchers.*;
import static org.junit.Assert.*;
import static org.hamcrest.CoreMatchers.*;
import org.junit.*;
import org.mockito.*;
-import static org.mockito.Mockito.*;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
p.setProperty("force_exit", "false");
CmdLine.access = new PropAccess(p);
-
+ keyfile = "src/test/resources/keyfile";
password = "password";
- keyfile = "test/keyfile";
- FileInputStream fis = new FileInputStream(keyfile);
+ File keyF = new File("src/test/resources", "keyfile");
+ FileInputStream fis = new FileInputStream(keyF);
try {
symm = Symm.obtain(fis);
} finally {
assertThat(decrypted, is(password));
}
- @Test
- public void regurgitateTest() {
- // TODO: We may still want to remove the regurgitate functionality
- // from the CmdLine - Ian
- fail("Tests not yet implemented");
- }
+ // @Test
+ // public void regurgitateTest() {
+ // // TODO: We may still want to remove the regurgitate functionality
+ // // from the CmdLine - Ian
+ // fail("Tests not yet implemented");
+ // }
@Test
public void encode64Test() throws Exception {