fix code smell in model-impl 30/83530/3
authorHengye <yehui.wang@est.tech>
Fri, 29 Mar 2019 15:07:38 +0000 (15:07 +0000)
committerHengye <yehui.wang@est.tech>
Fri, 29 Mar 2019 15:07:38 +0000 (15:07 +0000)
Issue-ID: POLICY-1264
Change-Id: Idacb7151978373e48098790d9d86825410b65aa6
Signed-off-by: Hengye <yehui.wang@est.tech>
18 files changed:
models-interactions/model-impl/appc/src/main/java/org/onap/policy/appc/CommonHeader.java
models-interactions/model-impl/appc/src/main/java/org/onap/policy/appc/Request.java
models-interactions/model-impl/appc/src/main/java/org/onap/policy/appc/Response.java
models-interactions/model-impl/appclcm/src/main/java/org/onap/policy/appclcm/LcmCommonHeader.java
models-interactions/model-impl/appclcm/src/main/java/org/onap/policy/appclcm/LcmRequest.java
models-interactions/model-impl/appclcm/src/main/java/org/onap/policy/appclcm/LcmWrapper.java
models-interactions/model-impl/events/src/main/java/org/onap/policy/controlloop/ControlLoopOperation.java
models-interactions/model-impl/sdc/src/main/java/org/onap/policy/sdc/Resource.java
models-interactions/model-impl/sdc/src/main/java/org/onap/policy/sdc/ResourceInstance.java
models-interactions/model-impl/sdc/src/main/java/org/onap/policy/sdc/Service.java
models-interactions/model-impl/sdc/src/main/java/org/onap/policy/sdc/ServiceInstance.java
models-interactions/model-impl/sdnc/src/main/java/org/onap/policy/sdnc/SdncResponseOutput.java
models-interactions/model-impl/sdnr/src/main/java/org/onap/policy/sdnr/PciCommonHeader.java
models-interactions/model-impl/sdnr/src/main/java/org/onap/policy/sdnr/PciWrapper.java
models-interactions/model-impl/so/src/main/java/org/onap/policy/so/SoRequestDetails.java
models-interactions/model-impl/so/src/test/java/org/onap/policy/so/SoDummyServer.java [moved from models-interactions/model-impl/so/src/test/java/org/onap/policy/so/SoDummyServerTest.java with 99% similarity]
models-interactions/model-impl/so/src/test/java/org/onap/policy/so/SoManagerTest.java
models-interactions/model-impl/trafficgenerator/src/main/java/org/onap/policy/vnf/trafficgenerator/PgStreams.java

index 964af37..a3859b4 100644 (file)
@@ -8,9 +8,9 @@
  * 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.
@@ -58,7 +58,7 @@ public class CommonHeader implements Serializable {
 
     /**
      * Construct an instance from an existing instance.
-     * 
+     *
      * @param commonHeader the existing instance
      */
     public CommonHeader(CommonHeader commonHeader) {
index 7f15746..a9ad6d8 100644 (file)
@@ -8,9 +8,9 @@
  * 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.
index f24c840..d5fc66e 100644 (file)
@@ -8,9 +8,9 @@
  * 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.
@@ -28,6 +28,7 @@ import java.util.HashMap;
 import java.util.Map;
 
 public class Response implements Serializable {
+
     private static final long serialVersionUID = 434953706339865151L;
 
     @SerializedName("CommonHeader")
@@ -45,7 +46,7 @@ public class Response implements Serializable {
 
     /**
      * Construct an instance from an existing instance.
-     * 
+     *
      * @param request the existing instance
      */
     public Response(Request request) {
@@ -133,5 +134,4 @@ public class Response implements Serializable {
     }
 
 
-
 }
index c812627..a2717f4 100644 (file)
@@ -8,9 +8,9 @@
  * 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.
@@ -57,7 +57,7 @@ public class LcmCommonHeader implements Serializable {
 
     /**
      * Used to copy a common header.
-     * 
+     *
      * @param commonHeader a header that is defined by the lcm api guide that contains information
      *        about the request (requestId, flags, etc.)
      */
@@ -72,7 +72,7 @@ public class LcmCommonHeader implements Serializable {
 
     /**
      * Get the timestamp.
-     * 
+     *
      * @return the timeStamp
      */
     public Instant getTimeStamp() {
@@ -81,7 +81,7 @@ public class LcmCommonHeader implements Serializable {
 
     /**
      * Set the timestamp.
-     * 
+     *
      * @param timeStamp the timeStamp to set
      */
     public void setTimeStamp(Instant timeStamp) {
@@ -90,7 +90,7 @@ public class LcmCommonHeader implements Serializable {
 
     /**
      * Get the API version.
-     * 
+     *
      * @return the apiVer
      */
     public String getApiVer() {
@@ -99,7 +99,7 @@ public class LcmCommonHeader implements Serializable {
 
     /**
      * Set the API version.
-     * 
+     *
      * @param apiVer the apiVer to set
      */
     public void setApiVer(String apiVer) {
@@ -108,7 +108,7 @@ public class LcmCommonHeader implements Serializable {
 
     /**
      * Get the originator Id.
-     * 
+     *
      * @return the originatorId
      */
     public String getOriginatorId() {
@@ -117,7 +117,7 @@ public class LcmCommonHeader implements Serializable {
 
     /**
      * Set the originator Id.
-     * 
+     *
      * @param originatorId the originatorId to set
      */
     public void setOriginatorId(String originatorId) {
@@ -126,7 +126,7 @@ public class LcmCommonHeader implements Serializable {
 
     /**
      * Get the request Id.
-     * 
+     *
      * @return the requestId
      */
     public UUID getRequestId() {
@@ -135,7 +135,7 @@ public class LcmCommonHeader implements Serializable {
 
     /**
      * Set the request Id.
-     * 
+     *
      * @param requestId the requestId to set
      */
     public void setRequestId(UUID requestId) {
@@ -144,7 +144,7 @@ public class LcmCommonHeader implements Serializable {
 
     /**
      * Get the sub request Id.
-     * 
+     *
      * @return the subRequestId
      */
     public String getSubRequestId() {
@@ -153,7 +153,7 @@ public class LcmCommonHeader implements Serializable {
 
     /**
      * Set the sub request Id.
-     * 
+     *
      * @param subRequestId the subRequestId to set
      */
     public void setSubRequestId(String subRequestId) {
@@ -162,7 +162,7 @@ public class LcmCommonHeader implements Serializable {
 
     /**
      * Get the flags.
-     * 
+     *
      * @return the flags
      */
     public Map<String, String> getFlags() {
@@ -171,7 +171,7 @@ public class LcmCommonHeader implements Serializable {
 
     /**
      * Set the flags.
-     * 
+     *
      * @param flags the flags to set
      */
     public void setFlags(Map<String, String> flags) {
index 3e8f717..0ea6e9c 100644 (file)
@@ -8,9 +8,9 @@
  * 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.
@@ -52,7 +52,7 @@ public class LcmRequest implements Serializable {
 
     /**
      * Get the action.
-     * 
+     *
      * @return the action
      */
     public String getAction() {
@@ -61,7 +61,7 @@ public class LcmRequest implements Serializable {
 
     /**
      * Set the action.
-     * 
+     *
      * @param action the action to set
      */
     public void setAction(String action) {
@@ -70,7 +70,7 @@ public class LcmRequest implements Serializable {
 
     /**
      * Get the action identifiers.
-     * 
+     *
      * @return the actionIdentifiers
      */
     public Map<String, String> getActionIdentifiers() {
@@ -79,7 +79,7 @@ public class LcmRequest implements Serializable {
 
     /**
      * Set the action identifiers.
-     * 
+     *
      * @param actionIdentifiers the actionIdentifiers to set
      */
     public void setActionIdentifiers(Map<String, String> actionIdentifiers) {
@@ -88,7 +88,7 @@ public class LcmRequest implements Serializable {
 
     /**
      * Get the payload.
-     * 
+     *
      * @return the payload
      */
     public String getPayload() {
@@ -97,7 +97,7 @@ public class LcmRequest implements Serializable {
 
     /**
      * Set the payload.
-     * 
+     *
      * @param payload the payload to set
      */
     public void setPayload(String payload) {
@@ -106,7 +106,7 @@ public class LcmRequest implements Serializable {
 
     /**
      * Get the common header.
-     * 
+     *
      * @param commonHeader the commonHeader to set
      */
     public void setCommonHeader(LcmCommonHeader commonHeader) {
index 244c6ab..f9a8d55 100644 (file)
@@ -8,9 +8,9 @@
  * 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.
@@ -50,7 +50,7 @@ public class LcmWrapper implements Serializable {
 
     /**
      * Get the version.
-     * 
+     *
      * @return the version
      */
     public String getVersion() {
@@ -59,7 +59,7 @@ public class LcmWrapper implements Serializable {
 
     /**
      * Set the version.
-     * 
+     *
      * @param version the version to set
      */
     public void setVersion(String version) {
@@ -68,7 +68,7 @@ public class LcmWrapper implements Serializable {
 
     /**
      * Get the cambria partition.
-     * 
+     *
      * @return the cambriaPartition
      */
     public String getCambriaPartition() {
@@ -77,7 +77,7 @@ public class LcmWrapper implements Serializable {
 
     /**
      * Set the cambria partition.
-     * 
+     *
      * @param cambriaPartition the cambriaPartition to set
      */
     public void setCambriaPartition(String cambriaPartition) {
@@ -86,7 +86,7 @@ public class LcmWrapper implements Serializable {
 
     /**
      * Get the RPN name.
-     * 
+     *
      * @return the rpcName
      */
     public String getRpcName() {
@@ -95,7 +95,7 @@ public class LcmWrapper implements Serializable {
 
     /**
      * Set the RPC name.
-     * 
+     *
      * @param rpcName the rpcName to set
      */
     public void setRpcName(String rpcName) {
@@ -104,7 +104,7 @@ public class LcmWrapper implements Serializable {
 
     /**
      * Get the correlation Id.
-     * 
+     *
      * @return the correlationId
      */
     public String getCorrelationId() {
@@ -113,7 +113,7 @@ public class LcmWrapper implements Serializable {
 
     /**
      * Set the correclation Id.
-     * 
+     *
      * @param correlationId the correlationId to set
      */
     public void setCorrelationId(String correlationId) {
@@ -122,7 +122,7 @@ public class LcmWrapper implements Serializable {
 
     /**
      * Get the type.
-     * 
+     *
      * @return the type
      */
     public String getType() {
@@ -131,7 +131,7 @@ public class LcmWrapper implements Serializable {
 
     /**
      * Set the type.
-     * 
+     *
      * @param type the type to set
      */
     public void setType(String type) {
index 8fd4148..85bf95a 100644 (file)
@@ -8,9 +8,9 @@
  * 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.
@@ -43,7 +43,7 @@ public class ControlLoopOperation implements Serializable {
 
     /**
      * Construct an instance from an existing instance.
-     * 
+     *
      * @param op the existing instance
      */
     public ControlLoopOperation(ControlLoopOperation op) {
index 9b73446..8bdf9d3 100644 (file)
@@ -8,9 +8,9 @@
  * 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.
@@ -27,20 +27,20 @@ import java.util.UUID;
 public class Resource implements Serializable {
 
     private static final long serialVersionUID = -913729158733348027L;
-    
+
     private UUID    resourceUuid;
     private UUID    resourceInvariantUuid;
     private String  resourceName;
     private String  resourceVersion;
     private ResourceType    resourceType;
-    
+
     public Resource() {
         //Empty Constructor
     }
-    
+
     /**
      * Constructor.
-     * 
+     *
      * @param resource copy object
      */
     public Resource(Resource resource) {
@@ -50,19 +50,19 @@ public class Resource implements Serializable {
         this.resourceVersion = resource.resourceVersion;
         this.resourceType = resource.resourceType;
     }
-    
+
     public Resource(UUID uuid) {
         this.resourceUuid = uuid;
     }
-    
+
     public Resource(String name, ResourceType type) {
         this.resourceName = name;
         this.resourceType = type;
     }
-    
+
     /**
      * Constructor.
-     * 
+     *
      * @param uuid uuid
      * @param invariantUuid invariant uuid
      * @param name name
@@ -76,7 +76,7 @@ public class Resource implements Serializable {
         this.resourceVersion = version;
         this.resourceType = type;
     }
-    
+
     public UUID getResourceUuid() {
         return resourceUuid;
     }
@@ -123,7 +123,7 @@ public class Resource implements Serializable {
                 + ", resourceName=" + resourceName + ", resourceVersion=" + resourceVersion + ", resourceType="
                 + resourceType + "]";
     }
-    
+
     @Override
     public int hashCode() {
         final int prime = 31;
@@ -135,7 +135,7 @@ public class Resource implements Serializable {
         result = prime * result + ((resourceVersion == null) ? 0 : resourceVersion.hashCode());
         return result;
     }
-    
+
     @Override
     public boolean equals(Object obj) {
         if (this == obj) {
@@ -185,5 +185,5 @@ public class Resource implements Serializable {
         }
         return true;
     }
-    
+
 }
index dce6ec0..9c1db8a 100644 (file)
@@ -8,9 +8,9 @@
  * 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.
@@ -25,26 +25,27 @@ import java.io.Serializable;
 import java.util.UUID;
 
 public class ResourceInstance implements Serializable {
+
     private static final long serialVersionUID = -5506162340393802424L;
 
     private String resourceInstanceName;
     private String resourceName;
-    private UUID    resourceInvariantUuid;
+    private UUID resourceInvariantUuid;
     private String resourceVersion;
     private ResourceType resourceType;
-    private UUID    resourceUuid;
-    
+    private UUID resourceUuid;
+
     public ResourceInstance() {
         //Empty Constructor
     }
-    
+
     /**
      * Constructor.
-     * 
+     *
      * @param instance copy object
      */
     public ResourceInstance(ResourceInstance instance) {
-        if (instance == null) { 
+        if (instance == null) {
             return;
         }
         this.resourceInstanceName = instance.resourceInstanceName;
@@ -54,7 +55,7 @@ public class ResourceInstance implements Serializable {
         this.resourceType = instance.resourceType;
         this.resourceUuid = instance.resourceUuid;
     }
-    
+
     public String getResourceInstanceName() {
         return resourceInstanceName;
     }
@@ -106,10 +107,10 @@ public class ResourceInstance implements Serializable {
     @Override
     public String toString() {
         return "ResourceInstance [resourceInstanceName=" + resourceInstanceName + ", resourceName=" + resourceName
-                + ", resourceInvariantUuid=" + resourceInvariantUuid + ", resourceVersion=" + resourceVersion
-                + ", resourceType=" + resourceType + ", resourceUuid=" + resourceUuid + "]";
+            + ", resourceInvariantUuid=" + resourceInvariantUuid + ", resourceVersion=" + resourceVersion
+            + ", resourceType=" + resourceType + ", resourceUuid=" + resourceUuid + "]";
     }
-    
+
     @Override
     public int hashCode() {
         final int prime = 31;
@@ -122,7 +123,7 @@ public class ResourceInstance implements Serializable {
         result = prime * result + ((resourceVersion == null) ? 0 : resourceVersion.hashCode());
         return result;
     }
-    
+
     @Override
     public boolean equals(Object obj) {
         if (this == obj) {
@@ -175,5 +176,5 @@ public class ResourceInstance implements Serializable {
         }
         return true;
     }
-    
+
 }
index f4f97c4..709abf9 100644 (file)
@@ -8,9 +8,9 @@
  * 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.
@@ -27,27 +27,27 @@ import java.util.UUID;
 public class Service implements Serializable {
 
     private static final long serialVersionUID = -1249276698549996806L;
-    
-    private UUID        serviceUUID;
-    private UUID        serviceInvariantUUID;
-    private String  serviceName;
-    private String  serviceVersion;
-    
+
+    private UUID serviceUUID;
+    private UUID serviceInvariantUUID;
+    private String serviceName;
+    private String serviceVersion;
+
     public Service() {
         //Empty Constructor
     }
-    
+
     public Service(UUID uuid) {
         this.serviceUUID = uuid;
     }
-    
+
     public Service(String name) {
         this.serviceName = name;
     }
-    
+
     /**
      * Constructor.
-     * 
+     *
      * @param uuid service id
      * @param invariantUUID service invariant id
      * @param name name
@@ -59,10 +59,10 @@ public class Service implements Serializable {
         this.serviceName = name;
         this.serviceVersion = version;
     }
-    
+
     /**
      * Constructor.
-     * 
+     *
      * @param service copy object
      */
     public Service(Service service) {
@@ -71,7 +71,7 @@ public class Service implements Serializable {
         this.serviceName = service.serviceName;
         this.serviceVersion = service.serviceVersion;
     }
-    
+
     public UUID getServiceUUID() {
         return serviceUUID;
     }
@@ -107,9 +107,9 @@ public class Service implements Serializable {
     @Override
     public String toString() {
         return "Service [serviceUUID=" + serviceUUID + ", serviceInvariantUUID=" + serviceInvariantUUID
-                + ", serviceName=" + serviceName + ", serviceVersion=" + serviceVersion + "]";
+            + ", serviceName=" + serviceName + ", serviceVersion=" + serviceVersion + "]";
     }
-    
+
     @Override
     public int hashCode() {
         final int prime = 31;
index 49f1b85..d5f74d4 100644 (file)
@@ -8,9 +8,9 @@
  * 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.
@@ -25,23 +25,24 @@ import java.io.Serializable;
 import java.util.UUID;
 
 public class ServiceInstance implements Serializable {
+
     private static final long serialVersionUID = 6285260780966679625L;
 
-    private UUID        personaModelUUID;
-    private UUID        serviceUUID;
-    private UUID        serviceInstanceUUID;
-    private UUID        widgetModelUUID;
-    private String  widgetModelVersion;
-    private String  serviceName;
-    private String  serviceInstanceName;
-    
+    private UUID personaModelUUID;
+    private UUID serviceUUID;
+    private UUID serviceInstanceUUID;
+    private UUID widgetModelUUID;
+    private String widgetModelVersion;
+    private String serviceName;
+    private String serviceInstanceName;
+
     public ServiceInstance() {
         //Empty Constructor
     }
-    
+
     /**
      * Constructor.
-     * 
+     *
      * @param instance copy object
      */
     public ServiceInstance(ServiceInstance instance) {
@@ -56,7 +57,7 @@ public class ServiceInstance implements Serializable {
         this.serviceName = instance.serviceName;
         this.serviceInstanceName = instance.serviceInstanceName;
     }
-    
+
     public UUID getPersonaModelUUID() {
         return personaModelUUID;
     }
@@ -116,11 +117,11 @@ public class ServiceInstance implements Serializable {
     @Override
     public String toString() {
         return "ServiceInstance [personaModelUUID=" + personaModelUUID + ", serviceUUID=" + serviceUUID
-                + ", serviceInstanceUUID=" + serviceInstanceUUID + ", widgetModelUUID=" + widgetModelUUID
-                + ", widgetModelVersion=" + widgetModelVersion + ", serviceName=" + serviceName
-                + ", serviceInstanceName=" + serviceInstanceName + "]";
+            + ", serviceInstanceUUID=" + serviceInstanceUUID + ", widgetModelUUID=" + widgetModelUUID
+            + ", widgetModelVersion=" + widgetModelVersion + ", serviceName=" + serviceName
+            + ", serviceInstanceName=" + serviceInstanceName + "]";
     }
-    
+
     @Override
     public int hashCode() {
         final int prime = 31;
@@ -134,7 +135,7 @@ public class ServiceInstance implements Serializable {
         result = prime * result + ((widgetModelVersion == null) ? 0 : widgetModelVersion.hashCode());
         return result;
     }
-    
+
     @Override
     public boolean equals(Object obj) {
         if (this == obj) {
@@ -198,5 +199,5 @@ public class ServiceInstance implements Serializable {
         }
         return true;
     }
-    
+
 }
index fc3335a..144e363 100644 (file)
@@ -22,7 +22,6 @@ package org.onap.policy.sdnc;
 import com.google.gson.annotations.SerializedName;
 
 import java.io.Serializable;
-import java.util.List;
 
 public class SdncResponseOutput implements Serializable {
 
index 5c1ed48..f575a73 100644 (file)
@@ -8,9 +8,9 @@
  * 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.
@@ -57,7 +57,7 @@ public class PciCommonHeader implements Serializable {
 
     /**
      * Used to copy a pci common header.
-     * 
+     *
      * @param commonHeader a header that is defined by the Pci api guide that contains information
      *        about the request (requestId, flags, etc.)
      */
@@ -75,7 +75,7 @@ public class PciCommonHeader implements Serializable {
 
     /**
      * Get the timestamp.
-     * 
+     *
      * @return the timeStamp
      */
     public Instant getTimeStamp() {
@@ -84,7 +84,7 @@ public class PciCommonHeader implements Serializable {
 
     /**
      * Set the timestamp.
-     * 
+     *
      * @param timeStamp
      *            the timeStamp to set
      */
@@ -94,7 +94,7 @@ public class PciCommonHeader implements Serializable {
 
     /**
      * Get the API version.
-     * 
+     *
      * @return the apiVer
      */
     public String getApiVer() {
@@ -103,7 +103,7 @@ public class PciCommonHeader implements Serializable {
 
     /**
      * Set the API version.
-     * 
+     *
      * @param apiVer
      *            the apiVer to set
      */
@@ -113,7 +113,7 @@ public class PciCommonHeader implements Serializable {
 
     /**
      * Get the request Id.
-     * 
+     *
      * @return the requestId
      */
     public UUID getRequestId() {
@@ -122,7 +122,7 @@ public class PciCommonHeader implements Serializable {
 
     /**
      * Set the request Id.
-     * 
+     *
      * @param requestId
      *            the requestId to set
      */
@@ -132,7 +132,7 @@ public class PciCommonHeader implements Serializable {
 
     /**
      * Get the sub request Id.
-     * 
+     *
      * @return the subRequestId
      */
     public String getSubRequestId() {
@@ -141,7 +141,7 @@ public class PciCommonHeader implements Serializable {
 
     /**
      * Set the sub request Id.
-     * 
+     *
      * @param subRequestId
      *            the subRequestId to set
      */
@@ -150,7 +150,7 @@ public class PciCommonHeader implements Serializable {
     }
     /**
      * Set the request track.
-     * 
+     *
      * @param requestTrack
      *            the requestTrack to set
      */
@@ -159,7 +159,7 @@ public class PciCommonHeader implements Serializable {
     }
     /**
      * Get the request track.
-     * 
+     *
      * @return the requestTrack
      */
     public Map<String, String> getRequestTrack() {
@@ -168,7 +168,7 @@ public class PciCommonHeader implements Serializable {
 
     /**
      * Get the flags.
-     * 
+     *
      * @return the flags
      */
     public Map<String, String> getFlags() {
@@ -177,7 +177,7 @@ public class PciCommonHeader implements Serializable {
 
     /**
      * Set the flags.
-     * 
+     *
      * @param flags
      *            the flags to set
      */
@@ -187,7 +187,7 @@ public class PciCommonHeader implements Serializable {
 
     @Override
     public String toString() {
-        return "CommonHeader [timeStamp=" + timeStamp + ", apiVer=" + apiVer 
+        return "CommonHeader [timeStamp=" + timeStamp + ", apiVer=" + apiVer
                    + ", requestId=" + requestId + ", subRequestId=" + subRequestId + ", requestTrack=" + requestTrack
                    + ", flags=" + flags + "]";
     }
index 7b8b5b1..fd9bb93 100644 (file)
@@ -8,9 +8,9 @@
  * 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.
@@ -50,7 +50,7 @@ public class PciWrapper implements Serializable {
 
     /**
      * Get the version.
-     * 
+     *
      * @return the version
      */
     public String getVersion() {
@@ -59,9 +59,8 @@ public class PciWrapper implements Serializable {
 
     /**
      * Set the version.
-     * 
-     * @param version
-     *            the version to set
+     *
+     * @param version the version to set
      */
     public void setVersion(String version) {
         this.version = version;
@@ -69,7 +68,7 @@ public class PciWrapper implements Serializable {
 
     /**
      * Get the cambria partition.
-     * 
+     *
      * @return the cambriaPartition
      */
     public String getCambriaPartition() {
@@ -78,9 +77,8 @@ public class PciWrapper implements Serializable {
 
     /**
      * Set the cambria partition.
-     * 
-     * @param cambriaPartition
-     *            the cambriaPartition to set
+     *
+     * @param cambriaPartition the cambriaPartition to set
      */
     public void setCambriaPartition(String cambriaPartition) {
         this.cambriaPartition = cambriaPartition;
@@ -88,7 +86,7 @@ public class PciWrapper implements Serializable {
 
     /**
      * Get the RPN name.
-     * 
+     *
      * @return the rpcName
      */
     public String getRpcName() {
@@ -97,9 +95,8 @@ public class PciWrapper implements Serializable {
 
     /**
      * Set the RPC name.
-     * 
-     * @param rpcName
-     *            the rpcName to set
+     *
+     * @param rpcName the rpcName to set
      */
     public void setRpcName(String rpcName) {
         this.rpcName = rpcName;
@@ -107,7 +104,7 @@ public class PciWrapper implements Serializable {
 
     /**
      * Get the correlation Id.
-     * 
+     *
      * @return the correlationId
      */
     public String getCorrelationId() {
@@ -116,9 +113,8 @@ public class PciWrapper implements Serializable {
 
     /**
      * Set the correclation Id.
-     * 
-     * @param correlationId
-     *            the correlationId to set
+     *
+     * @param correlationId the correlationId to set
      */
     public void setCorrelationId(String correlationId) {
         this.correlationId = correlationId;
@@ -126,7 +122,7 @@ public class PciWrapper implements Serializable {
 
     /**
      * Get the type.
-     * 
+     *
      * @return the type
      */
     public String getType() {
@@ -135,9 +131,8 @@ public class PciWrapper implements Serializable {
 
     /**
      * Set the type.
-     * 
-     * @param type
-     *            the type to set
+     *
+     * @param type the type to set
      */
     public void setType(String type) {
         this.type = type;
@@ -146,7 +141,7 @@ public class PciWrapper implements Serializable {
     @Override
     public String toString() {
         return "Wrapper [version=" + version + ", cambriaPartition=" + cambriaPartition + ", rpcName=" + rpcName
-                + ", correlationId=" + correlationId + ", type=" + type + "]";
+            + ", correlationId=" + correlationId + ", type=" + type + "]";
     }
 
     @Override
index b0f4ca7..2e94a66 100644 (file)
@@ -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 + "]";
     }
 
 }
@@ -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;
index 85f5ac7..4d7228f 100644 (file)
@@ -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
index 886b871..e912722 100644 (file)
@@ -8,9 +8,9 @@
  * 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.