cli-const unit test cases added 66/128866/1
authorGanesh <ganesh.c@samsung.com>
Tue, 26 Apr 2022 04:06:27 +0000 (09:36 +0530)
committerGanesh <ganesh.c@samsung.com>
Tue, 26 Apr 2022 04:06:33 +0000 (09:36 +0530)
Signed-off-by: Ganesh <ganesh.c@samsung.com>
Change-Id: I7cb4382b310a753b992c9a86dadccffd668c1d38
Issue-ID: CLI-443

profiles/command/src/test/java/org/onap/cli/fw/cmd/conf/OnapCommandConstantsTest.java [new file with mode: 0644]

diff --git a/profiles/command/src/test/java/org/onap/cli/fw/cmd/conf/OnapCommandConstantsTest.java b/profiles/command/src/test/java/org/onap/cli/fw/cmd/conf/OnapCommandConstantsTest.java
new file mode 100644 (file)
index 0000000..2c05eb8
--- /dev/null
@@ -0,0 +1,37 @@
+/*\r
+ * Copyright 2022 Samsung Electronics\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ *     http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+package org.onap.cli.fw.cmd.conf;\r
+\r
+import org.junit.Test;\r
+\r
+import static org.junit.Assert.assertTrue;\r
+\r
+public class OnapCommandConstantsTest {\r
+    @Test\r
+    public void test() {\r
+        assertTrue("cmd" == OnapCommandCmdConstants.CMD && "command" == OnapCommandCmdConstants.COMMAND\r
+                && "environment".equals(OnapCommandCmdConstants.ENVIRONMENT)\r
+                && "working_directory".equals(OnapCommandCmdConstants.WD)\r
+                && "result_map".equals(OnapCommandCmdConstants.RESULT_MAP)\r
+                && "output".equals(OnapCommandCmdConstants.OUTPUT)\r
+                && "error".equals(OnapCommandCmdConstants.ERROR)\r
+                && "success_codes".equals(OnapCommandCmdConstants.SUCCESS_EXIT_CODE)\r
+                && "pass_codes".equals(OnapCommandCmdConstants.PASS_CODE)\r
+                && "timeout".equals(OnapCommandCmdConstants.TIMEOUT)\r
+        );\r
+    }\r
+}\r