aboutsummaryrefslogtreecommitdiffstats
path: root/validation/src
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-10-11 11:14:58 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-10-11 11:14:58 +0530
commitbed220d657959425cd358108e5c1a410a3cbbb89 (patch)
tree180c8c93e0f434307341b148eefd10bff5de3e81 /validation/src
parent9c5cdc09cb164e9fa12b174f590053fe90e1535b (diff)
Verfiy Invalid samples
CLI-2 Change-Id: I7388da38841d07bacf64d10a2c11620dfb781c12 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'validation/src')
-rw-r--r--validation/src/test/java/org/onap/cli/moco/OnapCommandHttpMocoServer.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/validation/src/test/java/org/onap/cli/moco/OnapCommandHttpMocoServer.java b/validation/src/test/java/org/onap/cli/moco/OnapCommandHttpMocoServer.java
index f92e0c00..7f84704c 100644
--- a/validation/src/test/java/org/onap/cli/moco/OnapCommandHttpMocoServer.java
+++ b/validation/src/test/java/org/onap/cli/moco/OnapCommandHttpMocoServer.java
@@ -105,13 +105,13 @@ public class OnapCommandHttpMocoServer {
try {
values = (Map<String, ?>) new Yaml().load(file.getInputStream());
} catch (Exception e) {
- throw new OnapCommandInvalidSample("Invalid sample", e);
+ throw new OnapCommandInvalidSample(file.getFilename(), e);
}
OnapCommandSample sample = new OnapCommandSample();
if (!this.getValue(values, SAMPLE_VERSION).equals(SAMPLE_VERSION_1_0)) {
- throw new OnapCommandInvalidSample("Invalid sample version " + this.getValue(values, SAMPLE_VERSION));
+ throw new OnapCommandInvalidSample(file.getFilename(), "Invalid sample version " + this.getValue(values, SAMPLE_VERSION));
}
sample.setCommandName(this.getValue(values, SAMPLE_COMMAND_NAME));