aboutsummaryrefslogtreecommitdiffstats
path: root/dblib/provider/src/test/java/org
diff options
context:
space:
mode:
authorSmokowski, Kevin (ks6305) <kevin.smokowski@att.com>2019-10-17 19:15:42 +0000
committerKevin Smokowski <kevin.smokowski@att.com>2019-10-30 18:45:42 +0000
commitc9bf82b628b7d3f5f21f153538f950ac9a7d1294 (patch)
treeec94592811ade8ff1301d411333136df3158a110 /dblib/provider/src/test/java/org
parent88b50b19b726cc13ced419902eff162791ac456d (diff)
remove EncShellCommand
remove EncShellCommand to separate dblib from karaf and odl Issue-ID: CCSDK-1848 Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com> Change-Id: If43abeceb556b4075d2866a18b8c9e92765e14a2
Diffstat (limited to 'dblib/provider/src/test/java/org')
-rw-r--r--dblib/provider/src/test/java/org/onap/ccsdk/sli/core/dblib/EncShellCommandTest.java41
1 files changed, 0 insertions, 41 deletions
diff --git a/dblib/provider/src/test/java/org/onap/ccsdk/sli/core/dblib/EncShellCommandTest.java b/dblib/provider/src/test/java/org/onap/ccsdk/sli/core/dblib/EncShellCommandTest.java
deleted file mode 100644
index 740e69db..00000000
--- a/dblib/provider/src/test/java/org/onap/ccsdk/sli/core/dblib/EncShellCommandTest.java
+++ /dev/null
@@ -1,41 +0,0 @@
-package org.onap.ccsdk.sli.core.dblib;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-import java.io.ByteArrayOutputStream;
-import java.io.PrintStream;
-import java.util.Arrays;
-
-import static org.junit.Assert.*;
-
-public class EncShellCommandTest {
-
- private final ByteArrayOutputStream outContent = new ByteArrayOutputStream();
- private final ByteArrayOutputStream errContent = new ByteArrayOutputStream();
- private final PrintStream originalOut = System.out;
- private final PrintStream originalErr = System.err;
-
- @Before
- public void setUp() {
- System.setOut(new PrintStream(outContent));
- System.setErr(new PrintStream(errContent));
- }
-
- @After
- public void tearDown() {
- System.setOut(originalOut);
- System.setErr(originalErr);
- }
-
- @Test
- public void testDoExecute() throws Exception {
- String expected = "Original value: test" + System.getProperty("line.separator") +
- "Encrypted value: test";
- EncShellCommand encShellCommand = new EncShellCommand();
- encShellCommand.arg = "test";
- encShellCommand.doExecute();
- assertEquals(expected.trim(), outContent.toString().trim());
- }
-} \ No newline at end of file