summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/src/main/java/org/onap/cli/main/error/OnapCliArgumentValueMissing.java2
-rw-r--r--main/src/main/java/org/onap/cli/main/error/OnapCliInvalidArgument.java2
-rw-r--r--main/src/test/java/org/onap/cli/main/error/OnapCliArgumentTest.java6
3 files changed, 5 insertions, 5 deletions
diff --git a/main/src/main/java/org/onap/cli/main/error/OnapCliArgumentValueMissing.java b/main/src/main/java/org/onap/cli/main/error/OnapCliArgumentValueMissing.java
index f8f86e46..f1dd1ef7 100644
--- a/main/src/main/java/org/onap/cli/main/error/OnapCliArgumentValueMissing.java
+++ b/main/src/main/java/org/onap/cli/main/error/OnapCliArgumentValueMissing.java
@@ -27,6 +27,6 @@ public class OnapCliArgumentValueMissing extends OnapCommandException {
private static final long serialVersionUID = -6362824415803063442L;
public OnapCliArgumentValueMissing(String arg) {
- super("0x1001", "Value for argument " + arg + " is missing");
+ super("0x7001", "Value for argument " + arg + " is missing");
}
}
diff --git a/main/src/main/java/org/onap/cli/main/error/OnapCliInvalidArgument.java b/main/src/main/java/org/onap/cli/main/error/OnapCliInvalidArgument.java
index 32d8ef6f..e9f3adc5 100644
--- a/main/src/main/java/org/onap/cli/main/error/OnapCliInvalidArgument.java
+++ b/main/src/main/java/org/onap/cli/main/error/OnapCliInvalidArgument.java
@@ -25,7 +25,7 @@ import org.onap.cli.fw.error.OnapCommandException;
public class OnapCliInvalidArgument extends OnapCommandException {
private static final long serialVersionUID = -1438492553530993246L;
- private static final String ERROR_CODE = "0x1000";
+ private static final String ERROR_CODE = "0x7000";
private static final String ERROR_MESSAGE1 = "Invalid argument ";
public OnapCliInvalidArgument(String arg) {
diff --git a/main/src/test/java/org/onap/cli/main/error/OnapCliArgumentTest.java b/main/src/test/java/org/onap/cli/main/error/OnapCliArgumentTest.java
index 3916c630..fcb919b9 100644
--- a/main/src/test/java/org/onap/cli/main/error/OnapCliArgumentTest.java
+++ b/main/src/test/java/org/onap/cli/main/error/OnapCliArgumentTest.java
@@ -25,15 +25,15 @@ public class OnapCliArgumentTest {
@Test
public void onapCliArgumentValueMissingTest() {
OnapCliArgumentValueMissing failed = new OnapCliArgumentValueMissing("Argument value missing");
- assertEquals("0x1001::Value for argument Argument value missing is missing", failed.getMessage());
+ assertEquals("0x7001::Value for argument Argument value missing is missing", failed.getMessage());
}
@Test
public void onapCliInvalidArgumentTest() {
OnapCliInvalidArgument failed = new OnapCliInvalidArgument("Invalid Argument");
- assertEquals("0x1000::Invalid argument Invalid Argument", failed.getMessage());
+ assertEquals("0x7000::Invalid argument Invalid Argument", failed.getMessage());
failed = new OnapCliInvalidArgument("Invalid Argument", new Exception(""));
- assertEquals("0x1000::Invalid argument Invalid Argument , ", failed.getMessage());
+ assertEquals("0x7000::Invalid argument Invalid Argument , ", failed.getMessage());
}
}