aboutsummaryrefslogtreecommitdiffstats
path: root/appc-config/appc-flow-controller/provider
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2018-08-07 17:21:05 +0530
committerTakamune Cho <tc012c@att.com>2018-08-07 15:24:51 +0000
commit42b0c6f15278f1d92a7a07db1b253ff50374ee4f (patch)
tree8816645f8cf75319b73644d8d0ec24d81310abf9 /appc-config/appc-flow-controller/provider
parentf66c2480d558298e4c7ce94d02c643e91e885c3c (diff)
updated existing test in TransactionTest.java
to increase code coverage Issue-ID: APPC-1086 Change-Id: I2a16e144489647a011735bad462665690eeba368 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
Diffstat (limited to 'appc-config/appc-flow-controller/provider')
-rw-r--r--appc-config/appc-flow-controller/provider/src/test/java/org/onap/appc/flow/controller/data/TransactionTest.java41
1 files changed, 39 insertions, 2 deletions
diff --git a/appc-config/appc-flow-controller/provider/src/test/java/org/onap/appc/flow/controller/data/TransactionTest.java b/appc-config/appc-flow-controller/provider/src/test/java/org/onap/appc/flow/controller/data/TransactionTest.java
index ab8cecd1b..653c0fc25 100644
--- a/appc-config/appc-flow-controller/provider/src/test/java/org/onap/appc/flow/controller/data/TransactionTest.java
+++ b/appc-config/appc-flow-controller/provider/src/test/java/org/onap/appc/flow/controller/data/TransactionTest.java
@@ -204,11 +204,48 @@ public class TransactionTest {
@Test
public void equals() {
+ ActionIdentifier actionIdentifier = mock(ActionIdentifier.class);
+ PreCheck precheck = mock(PreCheck.class);
+ ArrayList<Response> responses = new ArrayList<>();
+ Parameters parameters = mock(Parameters.class);
+ ArrayList<Parameters> parametersList = new ArrayList<>();
+ parametersList.add(parameters);
transaction.setAction("action");
-
+ transaction.setActionIdentifier(actionIdentifier);
+ transaction.setActionLevel("some_action_level");
+ transaction.setExecutionRPC("some_execution_rpc");
+ transaction.setExecutionType("some_execution_type");
+ transaction.setExecutionModule("some_execution_module");
+ transaction.setExecutionEndPoint("some_execution_endpoint");
+ transaction.setState("some_state");
+ transaction.setStatus("some_status");
+ transaction.setStatusCode("some_status_code");
+ transaction.setPswd("some_pass");
+ transaction.setPayload("some_payload");
+ transaction.setPrecheck(precheck);
+ transaction.setParameters(parametersList);
+ transaction.setResponses(responses);
+ transaction.setTransactionId(133);
+ transaction.setuId("some_uid");
Transaction other = new Transaction();
other.setAction("action");
-
+ other.setAction("action");
+ other.setActionIdentifier(actionIdentifier);
+ other.setActionLevel("some_action_level");
+ other.setExecutionRPC("some_execution_rpc");
+ other.setExecutionType("some_execution_type");
+ other.setExecutionModule("some_execution_module");
+ other.setExecutionEndPoint("some_execution_endpoint");
+ other.setState("some_state");
+ other.setStatus("some_status");
+ other.setStatusCode("some_status_code");
+ other.setPswd("some_pass");
+ other.setPayload("some_payload");
+ other.setPrecheck(precheck);
+ other.setParameters(parametersList);
+ other.setResponses(responses);
+ other.setTransactionId(133);
+ other.setuId("some_uid");
Assert.assertTrue(transaction.equals(other));
}