summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/src/main/java/org/onap/usecaseui/server/bean/HttpResponseResult.java35
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/controller/sotn/SotnControllerTest.java5
2 files changed, 35 insertions, 5 deletions
diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/HttpResponseResult.java b/server/src/main/java/org/onap/usecaseui/server/bean/HttpResponseResult.java
new file mode 100644
index 00000000..2e59c3ea
--- /dev/null
+++ b/server/src/main/java/org/onap/usecaseui/server/bean/HttpResponseResult.java
@@ -0,0 +1,35 @@
+/*
+ * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.onap.usecaseui.server.bean;
+
+import lombok.Getter;
+import lombok.Setter;
+
+import java.io.Serializable;
+
+@Setter
+@Getter
+public class HttpResponseResult implements Serializable {
+ private int resultCode;
+ private String resultContent;
+
+ public HttpResponseResult(
+ int resultCode,
+ String resultContent) {
+ this.resultCode = resultCode;
+ this.resultContent = resultContent;
+ }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/controller/sotn/SotnControllerTest.java b/server/src/test/java/org/onap/usecaseui/server/controller/sotn/SotnControllerTest.java
index 326fa1b6..46f65220 100644
--- a/server/src/test/java/org/onap/usecaseui/server/controller/sotn/SotnControllerTest.java
+++ b/server/src/test/java/org/onap/usecaseui/server/controller/sotn/SotnControllerTest.java
@@ -180,11 +180,6 @@ public class SotnControllerTest {
}
@Test
- public void TestGetData(){
- sotnController.getData();
- }
-
- @Test
public void TestDeleteExtNetwork(){
String linkName="pnfName";
String resourceVersion="resourceVersion";