diff options
author | shentao999 <shentao@chinamobile.com> | 2019-08-22 15:37:57 +0800 |
---|---|---|
committer | shentao999 <shentao@chinamobile.com> | 2019-08-22 15:37:59 +0800 |
commit | dd2836a5d949489bfc20f5fd93df2e2f91f00d3c (patch) | |
tree | 26e317593382d971d477d22c8cd1d14db4c43404 | |
parent | 5ffcbd076e6bd598fc6270cf2498f61ea24ca61e (diff) |
Add uui-server common result
Change-Id: If82511c4c232f3e3cdce3bf1c0aac49a51e44557
Issue-ID: USECASEUI-307
Signed-off-by: shentao999 <shentao@chinamobile.com>
-rw-r--r-- | server/src/main/java/org/onap/usecaseui/server/bean/HttpResponseResult.java | 35 | ||||
-rw-r--r-- | server/src/test/java/org/onap/usecaseui/server/controller/sotn/SotnControllerTest.java | 5 |
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"; |