From 9b45c01d9bb3a4565ed64c20e72511edc0854636 Mon Sep 17 00:00:00 2001 From: kurczews Date: Mon, 13 Aug 2018 12:51:39 +0200 Subject: Renaming vid-automation #3 Change-Id: I5eabdb9d06ca9887808bb623dde09d038cf2de53 Issue-ID: VID-205 Signed-off-by: kurczews --- ...setMSOOrchestrationRequestGetErrorResponse.java | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/mso/PresetMSOOrchestrationRequestGetErrorResponse.java (limited to 'vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/mso/PresetMSOOrchestrationRequestGetErrorResponse.java') 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\"" + + " }" + + "}"; + } +} -- cgit 1.2.3-korg