summaryrefslogtreecommitdiffstats
path: root/models-interactions/model-impl/so/src
diff options
context:
space:
mode:
authorHengye <yehui.wang@est.tech>2019-03-29 15:07:38 +0000
committerHengye <yehui.wang@est.tech>2019-03-29 15:07:38 +0000
commit645f53bc65ca649d0ffbdea31d720a371f20811a (patch)
tree407eddcfca3de415e5d0c225e4e760eb6d71513a /models-interactions/model-impl/so/src
parent6d99c4013b43f48a891ac15dd149d4b97c6b291e (diff)
fix code smell in model-impl
Issue-ID: POLICY-1264 Change-Id: Idacb7151978373e48098790d9d86825410b65aa6 Signed-off-by: Hengye <yehui.wang@est.tech>
Diffstat (limited to 'models-interactions/model-impl/so/src')
-rw-r--r--models-interactions/model-impl/so/src/main/java/org/onap/policy/so/SoRequestDetails.java8
-rw-r--r--models-interactions/model-impl/so/src/test/java/org/onap/policy/so/SoDummyServer.java (renamed from models-interactions/model-impl/so/src/test/java/org/onap/policy/so/SoDummyServerTest.java)2
-rw-r--r--models-interactions/model-impl/so/src/test/java/org/onap/policy/so/SoManagerTest.java2
3 files changed, 6 insertions, 6 deletions
diff --git a/models-interactions/model-impl/so/src/main/java/org/onap/policy/so/SoRequestDetails.java b/models-interactions/model-impl/so/src/main/java/org/onap/policy/so/SoRequestDetails.java
index b0f4ca7c3..2e94a66c4 100644
--- a/models-interactions/model-impl/so/src/main/java/org/onap/policy/so/SoRequestDetails.java
+++ b/models-interactions/model-impl/so/src/main/java/org/onap/policy/so/SoRequestDetails.java
@@ -59,7 +59,7 @@ public class SoRequestDetails implements Serializable {
/**
* Constructor.
- *
+ *
* @param soRequestDetails copy object
*/
public SoRequestDetails(SoRequestDetails soRequestDetails) {
@@ -208,9 +208,9 @@ public class SoRequestDetails implements Serializable {
@Override
public String toString() {
return "SORequestDetails [modelInfo=" + modelInfo + ", cloudConfiguration=" + cloudConfiguration
- + ", requestInfo=" + requestInfo + ", subscriberInfo=" + subscriberInfo
- + ", relatedInstanceList=" + relatedInstanceList + ", requestParameters=" + requestParameters
- + ", configurationParameters=" + configurationParameters + "]";
+ + ", requestInfo=" + requestInfo + ", subscriberInfo=" + subscriberInfo
+ + ", relatedInstanceList=" + relatedInstanceList + ", requestParameters=" + requestParameters
+ + ", configurationParameters=" + configurationParameters + "]";
}
}
diff --git a/models-interactions/model-impl/so/src/test/java/org/onap/policy/so/SoDummyServerTest.java b/models-interactions/model-impl/so/src/test/java/org/onap/policy/so/SoDummyServer.java
index 910c0ac13..e9c338356 100644
--- a/models-interactions/model-impl/so/src/test/java/org/onap/policy/so/SoDummyServerTest.java
+++ b/models-interactions/model-impl/so/src/test/java/org/onap/policy/so/SoDummyServer.java
@@ -34,7 +34,7 @@ import javax.ws.rs.PathParam;
import javax.ws.rs.core.Response;
@Path("/SO")
-public class SoDummyServerTest {
+public class SoDummyServer {
private static int postMessagesReceived = 0;
private static int putMessagesReceived = 0;
diff --git a/models-interactions/model-impl/so/src/test/java/org/onap/policy/so/SoManagerTest.java b/models-interactions/model-impl/so/src/test/java/org/onap/policy/so/SoManagerTest.java
index 85f5ac7f9..4d7228ff7 100644
--- a/models-interactions/model-impl/so/src/test/java/org/onap/policy/so/SoManagerTest.java
+++ b/models-interactions/model-impl/so/src/test/java/org/onap/policy/so/SoManagerTest.java
@@ -59,7 +59,7 @@ public class SoManagerTest {
*/
@BeforeClass
public static void setUp() throws IOException {
- final ResourceConfig rc = new ResourceConfig(SoDummyServerTest.class);
+ final ResourceConfig rc = new ResourceConfig(SoDummyServer.class);
//Grizzly by default doesn't allow payload for HTTP methods (ex: DELETE), for which HTTP spec doesn't
// explicitly state that.
//allow it before starting the server