Line and branch coverage for Transaction
[appc.git] / appc-config / appc-flow-controller / provider / src / main / java / org / onap / appc / flow / controller / data / Transaction.java
index 082e41b..8e537ba 100644 (file)
@@ -1,34 +1,30 @@
 /*-
  * ============LICENSE_START=======================================================
- * ONAP : APP-C
+ * ONAP : APPC
  * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property.  All rights reserved.
+ * Copyright (C) 2017-18 AT&T Intellectual Property. All rights reserved.
  * ================================================================================
+ * Modifications Copyright (C) 2019 Ericsson
+ * =============================================================================
  * 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.
  * See the License for the specific language governing permissions and
  * limitations under the License.
+ *
  * ============LICENSE_END=========================================================
  */
 
 package org.onap.appc.flow.controller.data;
 
-import java.io.File;
-import java.io.IOException;
-import java.util.ArrayList;
 import java.util.List;
-
 import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.core.JsonGenerationException;
-import com.fasterxml.jackson.databind.JsonMappingException;
-import com.fasterxml.jackson.databind.ObjectMapper;
 
 public class Transaction {
 
@@ -43,27 +39,27 @@ public class Transaction {
 
     @JsonProperty("action-identifier")
     private ActionIdentifier actionIdentifier ;
-    
+
     @JsonProperty("parameters")
     private List<Parameters> parameters ;
 
     private String executionType;
-    
+
     private String uId;
-    
+
     private String statusCode;
 
     private String pswd;
-    
+
     private String executionEndPoint;
-    
+
     private String executionModule;
-    
+
     private String executionRPC;
-    
+
     @JsonProperty("state")
     private String state;
-    
+
     @JsonProperty("precheck")
     private PreCheck precheck;
 
@@ -72,10 +68,10 @@ public class Transaction {
 
     @JsonProperty("responses")
     private List<Response> responses ;
-    
-    
+
+
     private String status = "PENDING";
-    
+
     public String getuId() {
         return uId;
     }
@@ -91,7 +87,7 @@ public class Transaction {
     public void setPswd(String pswd) {
         this.pswd = pswd;
     }
-    
+
     public String getExecutionEndPoint() {
         return executionEndPoint;
     }
@@ -137,7 +133,7 @@ public class Transaction {
     public void setParameters(List<Parameters> parameters) {
         this.parameters = parameters;
     }
-    
+
     public String getState() {
         return state;
     }
@@ -221,7 +217,7 @@ public class Transaction {
     public void setActionIdentifier(ActionIdentifier actionIdentifier) {
         this.actionIdentifier = actionIdentifier;
     }
-    
+
     public String getStatusCode() {
         return statusCode;
     }
@@ -357,9 +353,4 @@ public class Transaction {
             return false;
         return true;
     }
-
-
 }
-
-
-