blob: 910450aa412327ecc376c41122d6a7a2067cb178 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
package org.opencomp.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\"" +
" }" +
"}";
}
}
|