aboutsummaryrefslogtreecommitdiffstats
path: root/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/mso/PresetMSOOrchestrationRequestGetErrorResponse.java
diff options
context:
space:
mode:
authorkurczews <krzysztof.kurczewski@nokia.com>2018-08-13 12:51:39 +0200
committerkurczews <krzysztof.kurczewski@nokia.com>2018-08-13 12:51:39 +0200
commit9b45c01d9bb3a4565ed64c20e72511edc0854636 (patch)
tree3ae448fc167d820f8f1beaba501b30e05c5847d7 /vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/mso/PresetMSOOrchestrationRequestGetErrorResponse.java
parent5015d4aa2a7ba17d5e7024bf9ef344e7b320b9ab (diff)
Renaming vid-automation #3
Change-Id: I5eabdb9d06ca9887808bb623dde09d038cf2de53 Issue-ID: VID-205 Signed-off-by: kurczews <krzysztof.kurczewski@nokia.com>
Diffstat (limited to 'vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/mso/PresetMSOOrchestrationRequestGetErrorResponse.java')
-rw-r--r--vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/mso/PresetMSOOrchestrationRequestGetErrorResponse.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/mso/PresetMSOOrchestrationRequestGetErrorResponse.java b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/mso/PresetMSOOrchestrationRequestGetErrorResponse.java
new file mode 100644
index 000000000..dfd2c55d6
--- /dev/null
+++ b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/mso/PresetMSOOrchestrationRequestGetErrorResponse.java
@@ -0,0 +1,24 @@
+package org.onap.simulator.presetGenerator.presets.mso;
+
+public class PresetMSOOrchestrationRequestGetErrorResponse extends PresetMSOOrchestrationRequestGet {
+ private final int responseCode;
+
+ public PresetMSOOrchestrationRequestGetErrorResponse(int responseCode) {
+ this.responseCode = responseCode;
+ }
+
+ @Override
+ public int getResponseCode() {
+ return responseCode;
+ }
+
+ @Override
+ public Object getResponseBody() {
+ return "{" +
+ " \"serviceException\": {" +
+ " \"messageId\": \"SVC0002\"," +
+ " \"text\": \"JSON Object Mapping Request\"" +
+ " }" +
+ "}";
+ }
+}