aboutsummaryrefslogtreecommitdiffstats
path: root/models-interactions
diff options
context:
space:
mode:
authoruj426b <uj426b@att.com>2020-07-31 12:06:01 -0400
committerPamela Dragosh <pdragosh@research.att.com>2020-08-20 12:23:26 +0000
commitdbb37442ecf243d3bcaf50f908691ad6f810ccfc (patch)
tree98663790800976a1785b1d127a9fb677712c0759 /models-interactions
parente88e4b3281fa4881093ccd1dfae8f826a5e9ff5a (diff)
Sonar Fixes policy/models, removing model-yaml
Change-Id: Icd82ea1aef90e4d638b13958519aac5ed5a53f73 Issue-ID: POLICY-2714 Signed-off-by: uj426b <uj426b@att.com>
Diffstat (limited to 'models-interactions')
-rw-r--r--models-interactions/model-impl/so/src/test/java/org/onap/policy/so/SoRequestDetailsTest.java58
1 files changed, 28 insertions, 30 deletions
diff --git a/models-interactions/model-impl/so/src/test/java/org/onap/policy/so/SoRequestDetailsTest.java b/models-interactions/model-impl/so/src/test/java/org/onap/policy/so/SoRequestDetailsTest.java
index 2fea0f868..f7b663e4b 100644
--- a/models-interactions/model-impl/so/src/test/java/org/onap/policy/so/SoRequestDetailsTest.java
+++ b/models-interactions/model-impl/so/src/test/java/org/onap/policy/so/SoRequestDetailsTest.java
@@ -24,11 +24,9 @@
package org.onap.policy.so;
import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertTrue;
import java.util.ArrayList;
import java.util.List;
@@ -115,63 +113,63 @@ public class SoRequestDetailsTest {
SoRequestDetails copiedDetails = new SoRequestDetails(details);
- assertTrue(details.equals(details));
- assertTrue(details.equals(copiedDetails));
- assertFalse(details.equals(null));
- assertFalse(details.equals("Hello"));
+ assertEquals(details, details);
+ assertEquals(details, copiedDetails);
+ assertNotEquals(details, null);
+ assertNotEquals(details, (Object) "Hello");
details.setCloudConfiguration(null);
- assertFalse(details.equals(copiedDetails));
+ assertNotEquals(details, copiedDetails);
copiedDetails.setCloudConfiguration(null);
- assertTrue(details.equals(copiedDetails));
+ assertEquals(details, copiedDetails);
details.setCloudConfiguration(cloudConfiguration);
- assertFalse(details.equals(copiedDetails));
+ assertNotEquals(details, copiedDetails);
copiedDetails.setCloudConfiguration(cloudConfiguration);
- assertTrue(details.equals(copiedDetails));
+ assertEquals(details, copiedDetails);
details.setModelInfo(null);
- assertFalse(details.equals(copiedDetails));
+ assertNotEquals(details, copiedDetails);
copiedDetails.setModelInfo(null);
- assertTrue(details.equals(copiedDetails));
+ assertEquals(details, copiedDetails);
details.setModelInfo(modelInfo);
- assertFalse(details.equals(copiedDetails));
+ assertNotEquals(details, copiedDetails);
copiedDetails.setModelInfo(modelInfo);
- assertTrue(details.equals(copiedDetails));
+ assertEquals(details, copiedDetails);
details.setRequestInfo(null);
- assertFalse(details.equals(copiedDetails));
+ assertNotEquals(details, copiedDetails);
copiedDetails.setRequestInfo(null);
- assertTrue(details.equals(copiedDetails));
+ assertEquals(details, copiedDetails);
details.setRequestInfo(requestInfo);
- assertFalse(details.equals(copiedDetails));
+ assertNotEquals(details, copiedDetails);
copiedDetails.setRequestInfo(requestInfo);
- assertTrue(details.equals(copiedDetails));
+ assertEquals(details, copiedDetails);
details.setRequestParameters(null);
- assertFalse(details.equals(copiedDetails));
+ assertNotEquals(details, copiedDetails);
copiedDetails.setRequestParameters(null);
- assertTrue(details.equals(copiedDetails));
+ assertEquals(details, copiedDetails);
details.setRequestParameters(requestParameters);
- assertFalse(details.equals(copiedDetails));
+ assertNotEquals(details, copiedDetails);
copiedDetails.setRequestParameters(requestParameters);
- assertTrue(details.equals(copiedDetails));
+ assertEquals(details, copiedDetails);
details.setSubscriberInfo(null);
- assertFalse(details.equals(copiedDetails));
+ assertNotEquals(details, copiedDetails);
copiedDetails.setSubscriberInfo(null);
- assertTrue(details.equals(copiedDetails));
+ assertEquals(details, copiedDetails);
details.setSubscriberInfo(subscriberInfo);
- assertFalse(details.equals(copiedDetails));
+ assertNotEquals(details, copiedDetails);
copiedDetails.setSubscriberInfo(subscriberInfo);
- assertTrue(details.equals(copiedDetails));
+ assertEquals(details, copiedDetails);
details.setRelatedInstanceList(null);
- assertFalse(details.equals(copiedDetails));
+ assertNotEquals(details, copiedDetails);
copiedDetails.setRelatedInstanceList(null);
- assertTrue(details.equals(copiedDetails));
+ assertEquals(details, copiedDetails);
details.setRelatedInstanceList(relatedInstanceList);
- assertFalse(details.equals(copiedDetails));
+ assertNotEquals(details, copiedDetails);
copiedDetails.setRelatedInstanceList(relatedInstanceList);
- assertTrue(details.equals(copiedDetails));
+ assertEquals(details, copiedDetails);
}
}