aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/test/java/org/onap/cli/fw/cmd/execution/OnapCommandExceutionShowDebugCommandTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src/test/java/org/onap/cli/fw/cmd/execution/OnapCommandExceutionShowDebugCommandTest.java')
-rw-r--r--framework/src/test/java/org/onap/cli/fw/cmd/execution/OnapCommandExceutionShowDebugCommandTest.java17
1 files changed, 11 insertions, 6 deletions
diff --git a/framework/src/test/java/org/onap/cli/fw/cmd/execution/OnapCommandExceutionShowDebugCommandTest.java b/framework/src/test/java/org/onap/cli/fw/cmd/execution/OnapCommandExceutionShowDebugCommandTest.java
index e31e53d5..c7aafa1a 100644
--- a/framework/src/test/java/org/onap/cli/fw/cmd/execution/OnapCommandExceutionShowDebugCommandTest.java
+++ b/framework/src/test/java/org/onap/cli/fw/cmd/execution/OnapCommandExceutionShowDebugCommandTest.java
@@ -15,11 +15,14 @@
*/
package org.onap.cli.fw.cmd.execution;
+import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import org.onap.cli.fw.error.OnapCommandException;
import org.onap.cli.fw.store.OnapCommandExecutionStoreTest;
+import java.io.File;
+
import static org.junit.Assert.*;
public class OnapCommandExceutionShowDebugCommandTest {
@@ -27,14 +30,9 @@ public class OnapCommandExceutionShowDebugCommandTest {
public static void setUp() throws Exception {
OnapCommandExecutionStoreTest executionStoreTest= new OnapCommandExecutionStoreTest();
executionStoreTest.setUp();
- executionStoreTest.listExecutionsTest();
- executionStoreTest.storeExectutionDebugTest();
- executionStoreTest.storeExectutionEndTest();
- executionStoreTest.storeExectutionOutputTest();
- executionStoreTest.storeExectutionProgressTest();
executionStoreTest.storeExectutionStartTest();
}
- @Test
+ @Test
public void runTest() throws OnapCommandException {
OnapCommandExceutionShowDebugCommand cmd=new OnapCommandExceutionShowDebugCommand();
cmd.initializeSchema("execution-show-debug.yaml");
@@ -44,4 +42,11 @@ public class OnapCommandExceutionShowDebugCommandTest {
}
+ @AfterClass
+ public static void tearDown() throws Exception {
+ String dirPathForExecutions = System.getProperty("user.dir") + File.separator + "data/executions";
+ File executionsDir = new File(dirPathForExecutions);
+ assertTrue(OnapCommandExceutionListCommandTest.deleteDirectory(executionsDir));
+ }
+
} \ No newline at end of file