From dd2836a5d949489bfc20f5fd93df2e2f91f00d3c Mon Sep 17 00:00:00 2001 From: shentao999 Date: Thu, 22 Aug 2019 15:37:57 +0800 Subject: Add uui-server common result Change-Id: If82511c4c232f3e3cdce3bf1c0aac49a51e44557 Issue-ID: USECASEUI-307 Signed-off-by: shentao999 --- .../usecaseui/server/bean/HttpResponseResult.java | 35 ++++++++++++++++++++++ .../server/controller/sotn/SotnControllerTest.java | 5 ---- 2 files changed, 35 insertions(+), 5 deletions(-) create mode 100644 server/src/main/java/org/onap/usecaseui/server/bean/HttpResponseResult.java 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 @@ -179,11 +179,6 @@ public class SotnControllerTest { verify(sotnService, times(1)).getServiceInstances(linkName,resourceVersion); } - @Test - public void TestGetData(){ - sotnController.getData(); - } - @Test public void TestDeleteExtNetwork(){ String linkName="pnfName"; -- cgit 1.2.3-korg