diff options
author | kurczews <krzysztof.kurczewski@nokia.com> | 2018-08-13 12:04:07 +0200 |
---|---|---|
committer | kurczews <krzysztof.kurczewski@nokia.com> | 2018-08-13 12:06:02 +0200 |
commit | 5ac1100c02912f7a45d2949d94cd33d054283139 (patch) | |
tree | 162e996dcaa5dd1e7db73ce3d0ac8adca08d8233 /vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetSubDetailsGet.java | |
parent | ccfb3ba1fbeb9f2807fa498686ce4441ac5cfc21 (diff) |
Renaming vid-automation #1
Change-Id: Ib5b576a931e37930119e440e965e491b1711d073
Issue-ID: VID-205
Signed-off-by: kurczews <krzysztof.kurczewski@nokia.com>
Diffstat (limited to 'vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetSubDetailsGet.java')
-rw-r--r-- | vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetSubDetailsGet.java | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetSubDetailsGet.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetSubDetailsGet.java deleted file mode 100644 index 5b9f2ff96..000000000 --- a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetSubDetailsGet.java +++ /dev/null @@ -1,46 +0,0 @@ -package org.opencomp.simulator.presetGenerator.presets.aai; - -import org.opencomp.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset; -import org.springframework.http.HttpMethod; - -import java.util.Collections; -import java.util.List; -import java.util.Map; - -import static vid.automation.test.utils.ReadFile.loadResourceAsString; - -public class PresetAAIGetSubDetailsGet extends BaseAAIPreset { - private String subscriberId; - private String responseBody; - - private static final String baseResponseBody = loadResourceAsString("presets_templates/PresetAAIGetSubDetailsGet.json"); - private static final String GLOBAL_CUSTOMER_ID = "GLOBAL_CUSTOMER_ID"; - - public PresetAAIGetSubDetailsGet(String subscriberId) { - this.subscriberId = subscriberId == null ? "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb" : subscriberId; - this.responseBody = baseResponseBody.replace(GLOBAL_CUSTOMER_ID, this.subscriberId); - } - - public void mapQueryParams(Map<String, List> map) { - map.put("depth", Collections.singletonList("2")); - } - - @Override - public Object getResponseBody() { - return responseBody; - } - - @Override - public HttpMethod getReqMethod() { - return HttpMethod.GET; - } - - @Override - public String getReqPath() { - return getRootPath() + "/business/customers/customer/" + getSubscriberId(); - } - - public String getSubscriberId() { - return subscriberId; - } -} |