summaryrefslogtreecommitdiffstats
path: root/models-interactions/model-impl/appc/src/test
diff options
context:
space:
mode:
authorRashmi Pujar <rashmi.pujar@bell.ca>2019-11-05 17:10:00 -0500
committerRashmi Pujar <rashmi.pujar@bell.ca>2019-11-07 17:03:48 -0500
commit3d372e317bff5fe7e27296cab4ed76e759f86994 (patch)
tree2fef62b9ab7712dff5eea8a227589b7ccc670694 /models-interactions/model-impl/appc/src/test
parentd7fcb9802900c2ce2abacb4f7e01713cdd7ba663 (diff)
Use lombok annotations for objects in models-interaction/models-impl module
Issue-ID: POLICY-1896 Signed-off-by: Rashmi Pujar <rashmi.pujar@bell.ca> Change-Id: I425afe25876cea91908391418582ef584e6fe6fc
Diffstat (limited to 'models-interactions/model-impl/appc/src/test')
-rw-r--r--models-interactions/model-impl/appc/src/test/java/org/onap/policy/appc/RequestTest.java52
1 files changed, 26 insertions, 26 deletions
diff --git a/models-interactions/model-impl/appc/src/test/java/org/onap/policy/appc/RequestTest.java b/models-interactions/model-impl/appc/src/test/java/org/onap/policy/appc/RequestTest.java
index 560a7d8d5..00ac99de5 100644
--- a/models-interactions/model-impl/appc/src/test/java/org/onap/policy/appc/RequestTest.java
+++ b/models-interactions/model-impl/appc/src/test/java/org/onap/policy/appc/RequestTest.java
@@ -75,54 +75,54 @@ public class RequestTest {
copiedRequest.setPayload(request.getPayload());
copiedRequest.setTargetId(request.getTargetId());
- assertTrue(request.equals(request));
- assertTrue(request.equals(copiedRequest));
- assertFalse(request.equals(null));
- assertFalse(request.equals("Hello"));
+ assertEquals(request, request);
+ assertEquals(request, copiedRequest);
+ assertNotEquals(null, request);
+ assertNotEquals("Hello", request);
request.setCommonHeader(null);
- assertFalse(request.equals(copiedRequest));
+ assertNotEquals(request, copiedRequest);
copiedRequest.setCommonHeader(null);
- assertTrue(request.equals(copiedRequest));
+ assertEquals(request, copiedRequest);
request.setCommonHeader(commonHeader);
- assertFalse(request.equals(copiedRequest));
+ assertNotEquals(request, copiedRequest);
copiedRequest.setCommonHeader(commonHeader);
- assertTrue(request.equals(copiedRequest));
+ assertEquals(request, copiedRequest);
request.setAction(null);
- assertFalse(request.equals(copiedRequest));
+ assertNotEquals(request, copiedRequest);
copiedRequest.setAction(null);
- assertTrue(request.equals(copiedRequest));
+ assertEquals(request, copiedRequest);
request.setAction(GO_TO_OZ);
- assertFalse(request.equals(copiedRequest));
+ assertNotEquals(request, copiedRequest);
copiedRequest.setAction(GO_TO_OZ);
- assertTrue(request.equals(copiedRequest));
+ assertEquals(request, copiedRequest);
request.setObjectId(null);
- assertFalse(request.equals(copiedRequest));
+ assertNotEquals(request, copiedRequest);
copiedRequest.setObjectId(null);
- assertTrue(request.equals(copiedRequest));
+ assertEquals(request, copiedRequest);
request.setObjectId(WIZARD);
- assertFalse(request.equals(copiedRequest));
+ assertNotEquals(request, copiedRequest);
copiedRequest.setObjectId(WIZARD);
- assertTrue(request.equals(copiedRequest));
+ assertEquals(request, copiedRequest);
request.setTargetId(null);
- assertFalse(request.equals(copiedRequest));
+ assertNotEquals(request, copiedRequest);
copiedRequest.setTargetId(null);
- assertTrue(request.equals(copiedRequest));
+ assertEquals(request, copiedRequest);
request.setTargetId("Oz");
- assertFalse(request.equals(copiedRequest));
+ assertNotEquals(request, copiedRequest);
copiedRequest.setTargetId("Oz");
- assertTrue(request.equals(copiedRequest));
+ assertEquals(request, copiedRequest);
- request.setPayload(new HashMap<String, Object>());
- assertFalse(request.equals(copiedRequest));
- copiedRequest.setPayload(new HashMap<String, Object>());
- assertTrue(request.equals(copiedRequest));
+ request.setPayload(new HashMap<>());
+ assertNotEquals(request, copiedRequest);
+ copiedRequest.setPayload(new HashMap<>());
+ assertEquals(request, copiedRequest);
request.setPayload(payload);
- assertFalse(request.equals(copiedRequest));
+ assertNotEquals(request, copiedRequest);
copiedRequest.setPayload(payload);
- assertTrue(request.equals(copiedRequest));
+ assertEquals(request, copiedRequest);
}
}