aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrishnajinka <kris.jinka@samsung.com>2018-08-07 09:07:47 +0900
committerkrishnajinka <kris.jinka@samsung.com>2018-08-07 22:48:52 +0900
commit47c46108782dccd44101b772ba979e3fdf3ead04 (patch)
tree862d8c22101e9e427773afe684b8535ae6d48218
parent7414584e40572c7854db959052c56f3cc8849488 (diff)
Resolve sonar issue in Policy parameters
Fix sonar issue of Method has 9 parameters, which is greater than 7 authorized in PolicyParameters class and related test class.Rework2 Issue-ID: POLICY-1016 Change-Id: I3096566d958e093439bcc95d92f1fe92e0ac57be Signed-off-by: Krishnajinka <kris.jinka@samsung.com>
-rw-r--r--PolicyEngineAPI/src/main/java/org/onap/policy/api/PolicyConfigParams.java160
-rw-r--r--PolicyEngineAPI/src/main/java/org/onap/policy/api/PolicyParameters.java1025
-rw-r--r--PolicyEngineAPI/src/test/java/org/onap/policy/test/PolicyParametersTest.java2782
3 files changed, 2064 insertions, 1903 deletions
diff --git a/PolicyEngineAPI/src/main/java/org/onap/policy/api/PolicyConfigParams.java b/PolicyEngineAPI/src/main/java/org/onap/policy/api/PolicyConfigParams.java
new file mode 100644
index 000000000..31427210e
--- /dev/null
+++ b/PolicyEngineAPI/src/main/java/org/onap/policy/api/PolicyConfigParams.java
@@ -0,0 +1,160 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * PolicyEngineAPI
+ * ================================================================================
+ * Copyright (C) 2018 Samsung Electronics Co., Ltd. All rights reserved.
+ * ================================================================================
+ * 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.policy.api;
+
+import java.util.Map;
+import java.util.UUID;
+
+/**
+ * Policy config parameters representing the request object
+ */
+public class PolicyConfigParams {
+ //policyConfigType the {@link PolicyConfigType} Enum format of the Config Type
+ private PolicyConfigType policyConfigType;
+
+ //policyName the <code>String</code> format of the Policy Name
+ private String policyName;
+
+ //policyDescription the <code>String</code> format of the Policy Description
+ private String policyDescription;
+
+ //onapName the <code>String</code> format of the ONAP Name
+ private String onapName;
+
+ //configName the <code>String</code> format of the Config Name
+ private String configName;
+
+ //attributes the <code>Map</code> Attributes that must contain the AttributeType and Map of key,
+ // value pairs corresponding to it.
+ private Map<AttributeType, Map<String, String>> attributes;
+
+ //configBodyType the {@link PolicyType} Enum format of the config Body Type.
+ private PolicyType configBodyType;
+
+ //configBody the <code>String</code> format of the Policy Body
+ private String configBody;
+
+ //requestID unique request ID which will be passed throughout the ONAP components to correlate logging messages.
+ private UUID requestID;
+
+ private PolicyConfigParams() {
+ super();
+ }
+
+ PolicyConfigType getPolicyConfigType() {
+ return policyConfigType;
+ }
+
+ public String getPolicyName() {
+ return policyName;
+ }
+
+ public String getPolicyDescription() {
+ return policyDescription;
+ }
+
+ public String getOnapName() {
+ return onapName;
+ }
+
+ public String getConfigName() {
+ return configName;
+ }
+
+ public Map<AttributeType, Map<String, String>> getAttributes() {
+ return attributes;
+ }
+
+ PolicyType getConfigBodyType() {
+ return configBodyType;
+ }
+
+ public String getConfigBody() {
+ return configBody;
+ }
+
+ public UUID getRequestID() {
+ return requestID;
+ }
+
+ public static PolicyConfigParamsBuilder builder() {
+ return new PolicyConfigParamsBuilder();
+ }
+
+ /**
+ * Builder class for policy config parameters
+ */
+ public static class PolicyConfigParamsBuilder {
+ PolicyConfigParams m = new PolicyConfigParams();
+
+ private PolicyConfigParamsBuilder() {
+ super();
+ }
+
+ public PolicyConfigParams build() {
+ return m;
+ }
+
+ public PolicyConfigParamsBuilder policyConfigType(PolicyConfigType policyConfigType) {
+ m.policyConfigType = policyConfigType;
+ return this;
+ }
+
+ public PolicyConfigParamsBuilder policyName(String policyName) {
+ m.policyName = policyName;
+ return this;
+ }
+
+ public PolicyConfigParamsBuilder policyDescription(String policyDescription) {
+ m.policyDescription = policyDescription;
+ return this;
+ }
+
+ public PolicyConfigParamsBuilder onapName(String onapName) {
+ m.onapName = onapName;
+ return this;
+ }
+
+ public PolicyConfigParamsBuilder configName(String configName) {
+ m.configName = configName;
+ return this;
+ }
+
+ public PolicyConfigParamsBuilder attributes(Map<AttributeType, Map<String, String>> attributes) {
+ m.attributes = attributes;
+ return this;
+ }
+
+ public PolicyConfigParamsBuilder configBodyType(PolicyType configBodyType) {
+ m.configBodyType = configBodyType;
+ return this;
+ }
+
+ public PolicyConfigParamsBuilder configBody(String configBody) {
+ m.configBody = configBody;
+ return this;
+ }
+
+ public PolicyConfigParamsBuilder requestID(UUID requestID) {
+ m.requestID = requestID;
+ return this;
+ }
+ }
+}
diff --git a/PolicyEngineAPI/src/main/java/org/onap/policy/api/PolicyParameters.java b/PolicyEngineAPI/src/main/java/org/onap/policy/api/PolicyParameters.java
index cb51e481d..2a8175f00 100644
--- a/PolicyEngineAPI/src/main/java/org/onap/policy/api/PolicyParameters.java
+++ b/PolicyEngineAPI/src/main/java/org/onap/policy/api/PolicyParameters.java
@@ -20,7 +20,6 @@
package org.onap.policy.api;
-import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
@@ -33,512 +32,502 @@ import java.util.UUID;
* @version 0.1
*/
public class PolicyParameters {
- private PolicyClass policyClass;
- private PolicyConfigType policyConfigType;
- private String policyName;
- private String policyDescription;
- private String onapName;
- private String configName;
- private Map<AttributeType, Map<String,String>> attributes;
- private Map<String, String> treatments;
- private String configBody;
- private PolicyType configBodyType;
- private String actionPerformer;
- private String actionAttribute;
- private UUID requestID;
- private List<String> dynamicRuleAlgorithmLabels;
- private List<String> dynamicRuleAlgorithmFunctions;
- private List<String> dynamicRuleAlgorithmField1;
- private List<String> dynamicRuleAlgorithmField2;
- private String priority;
- private RuleProvider ruleProvider;
- private String controllerName;
- private List<String> dependencyNames;
- private Date ttlDate;
- private boolean guard = false;
- private String riskLevel = "5";
- private String riskType = "default";
- private String extendedOption;
-
- /**
- * Sets Config Policy Parameters.
- *
- * @param policyConfigType the {@link org.onap.policy.api.PolicyConfigType} Enum format of the Config Type
- * @param policyName the <code>String</code> format of the Policy Name
- * @param policyDescription the <code>String</code> format of the Policy Description
- * @param onapName the <code>String</code> format of the ONAP Name
- * @param configName the <code>String</code> format of the Config Name
- * @param attributes the <code>Map</code> Attributes that must contain the AttributeType and Map of key,value pairs corresponding to it.
- * @param configBodyType the {@link org.onap.policy.api.PolicyType} Enum format of the config Body Type.
- * @param configBody the <code>String</code> format of the Policy Body
- * @param requestID unique request ID which will be passed throughout the ONAP components to correlate logging messages.
- * A different request ID should be passed for each request.
- */
- public void setConfigPolicyParameters(PolicyConfigType policyConfigType, String policyName, String policyDescription, String onapName, String configName,
- Map<AttributeType, Map<String, String>> attributes, PolicyType configBodyType, String configBody, UUID requestID){
- this.setPolicyConfigType(policyConfigType);
- this.setPolicyName(policyName);
- this.setPolicyDescription(policyDescription);
- this.setOnapName(onapName);
- this.setConfigName(configName);
- this.setAttributes(attributes);
- this.setConfigBody(configBody);
- this.setConfigBodyType(configBodyType);
- this.setRequestID(requestID);
- }
-
- /**
- * Sets config Firewall Policy Parameters.
- *
- * @param policyName the <code>String</code> format of the Policy Name
- * @param firewallJson the <code>String</code> representation of the Firewall Rules List
- * @param requestID unique request ID which will be passed throughout the ONAP components to correlate logging messages.
- * A different request ID should be passed for each request.
- */
- public void setConfigFirewallPolicyParameters(String policyName, String firewallJson, UUID requestID){
- this.setPolicyConfigType(PolicyConfigType.Firewall);
- this.setPolicyName(policyName);
- this.setConfigBody(firewallJson);
- this.setConfigBodyType(PolicyType.JSON);
- this.setRequestID(requestID);
- }
-
- /**
- * Gets the PolicyName of the Policy Parameters.
- *
- * @return policyName the <code>String</code> format of the Policy Name
- */
- public String getPolicyName() {
- return policyName;
- }
-
- /**
- * Sets the policyName of the Policy Parameters.
- *
- * @param policyName the <code>String</code> format of the Policy Name
- */
- public void setPolicyName(String policyName) {
- this.policyName = policyName;
- }
-
- /**
- * Gets the policy Description.
- *
- * @return the <code>String</code> format of the Policy Description
- */
- public String getPolicyDescription() {
- return policyDescription;
- }
-
- /**
- * Sets the policy Description of the Policy Description.
- *
- * @param policyDescription the <code>String</code> format of the Policy Description
- */
- public void setPolicyDescription(String policyDescription) {
- this.policyDescription = policyDescription;
- }
-
- /**
- * Gets the ONAP Name value of the Policy Paramters.
- *
- * @return <code>String</code> format of the ONAP Name
- */
- public String getOnapName() {
- return onapName;
- }
-
- /**
+ private PolicyClass policyClass;
+ private PolicyConfigType policyConfigType;
+ private String policyName;
+ private String policyDescription;
+ private String onapName;
+ private String configName;
+ private Map<AttributeType, Map<String,String>> attributes;
+ private Map<String, String> treatments;
+ private String configBody;
+ private PolicyType configBodyType;
+ private String actionPerformer;
+ private String actionAttribute;
+ private UUID requestID;
+ private List<String> dynamicRuleAlgorithmLabels;
+ private List<String> dynamicRuleAlgorithmFunctions;
+ private List<String> dynamicRuleAlgorithmField1;
+ private List<String> dynamicRuleAlgorithmField2;
+ private String priority;
+ private RuleProvider ruleProvider;
+ private String controllerName;
+ private List<String> dependencyNames;
+ private Date ttlDate;
+ private boolean guard = false;
+ private String riskLevel = "5";
+ private String riskType = "default";
+ private String extendedOption;
+
+ /**
+ * Sets Config Policy Parameters.
+ *
+ * @param policyConfigParams
+ */
+ public void setConfigPolicyParameters(PolicyConfigParams policyConfigParams){
+ this.setPolicyConfigType(policyConfigParams.getPolicyConfigType());
+ this.setPolicyName(policyConfigParams.getPolicyName());
+ this.setPolicyDescription(policyConfigParams.getPolicyDescription());
+ this.setOnapName(policyConfigParams.getOnapName());
+ this.setConfigName(policyConfigParams.getConfigName());
+ this.setAttributes(policyConfigParams.getAttributes());
+ this.setConfigBody(policyConfigParams.getConfigBody());
+ this.setConfigBodyType(policyConfigParams.getConfigBodyType());
+ this.setRequestID(policyConfigParams.getRequestID());
+ }
+
+ /**
+ * Sets config Firewall Policy Parameters.
+ *
+ * @param policyName the <code>String</code> format of the Policy Name
+ * @param firewallJson the <code>String</code> representation of the Firewall Rules List
+ * @param requestID unique request ID which will be passed throughout the ONAP components to correlate logging messages.
+ * A different request ID should be passed for each request.
+ */
+ public void setConfigFirewallPolicyParameters(String policyName, String firewallJson, UUID requestID){
+ this.setPolicyConfigType(PolicyConfigType.Firewall);
+ this.setPolicyName(policyName);
+ this.setConfigBody(firewallJson);
+ this.setConfigBodyType(PolicyType.JSON);
+ this.setRequestID(requestID);
+ }
+
+ /**
+ * Gets the PolicyName of the Policy Parameters.
+ *
+ * @return policyName the <code>String</code> format of the Policy Name
+ */
+ public String getPolicyName() {
+ return policyName;
+ }
+
+ /**
+ * Sets the policyName of the Policy Parameters.
+ *
+ * @param policyName the <code>String</code> format of the Policy Name
+ */
+ public void setPolicyName(String policyName) {
+ this.policyName = policyName;
+ }
+
+ /**
+ * Gets the policy Description.
+ *
+ * @return the <code>String</code> format of the Policy Description
+ */
+ public String getPolicyDescription() {
+ return policyDescription;
+ }
+
+ /**
+ * Sets the policy Description of the Policy Description.
+ *
+ * @param policyDescription the <code>String</code> format of the Policy Description
+ */
+ public void setPolicyDescription(String policyDescription) {
+ this.policyDescription = policyDescription;
+ }
+
+ /**
+ * Gets the ONAP Name value of the Policy Paramters.
+ *
+ * @return <code>String</code> format of the ONAP Name
+ */
+ public String getOnapName() {
+ return onapName;
+ }
+
+ /**
* Gets the ONAP Name value of the Policy Paramters.
*
* @return <code>String</code> format of the ONAP Name
* @deprecated Use {@link #getOnapName()} instead.
*/
- @Deprecated
+ @Deprecated
public String getEcompName() {
return onapName;
}
- /**
- * Sets the ONAP Name field of the Policy Parameters.
- *
- * @param onapName the <code>String</code> format of the ONAP Name
- */
- public void setOnapName(String onapName) {
- this.onapName = onapName;
- }
-
- /**
+ /**
+ * Sets the ONAP Name field of the Policy Parameters.
+ *
+ * @param onapName the <code>String</code> format of the ONAP Name
+ */
+ public void setOnapName(String onapName) {
+ this.onapName = onapName;
+ }
+
+ /**
* Sets the ONAP Name field of the Policy Parameters.
*
* @param ecompName the <code>String</code> format of the ONAP Name
* @deprecated use {@link #setOnapName(String)} instead.
*/
- @Deprecated
+ @Deprecated
public void setEcompName(String ecompName) {
this.onapName = ecompName;
}
- /**
- * Gets the Config Name value of the Policy Parameters.
- *
- * @return <code>String</code> format of the Config Name
- */
- public String getConfigName() {
- return configName;
- }
-
- /**
- * Sets the Config Name field of the Policy Parameters.
- *
- * @param configName the <code>String</code> format of the Config Name
- */
- public void setConfigName(String configName) {
- this.configName = configName;
- }
-
- /**
- * Gets the Attributes of the policy Parameters.
- *
- * @return <code>List</code> the <code>Map</code> Attributes that must contain the AttributeType and Map of key,value pairs corresponding to it.
- */
- public Map<AttributeType, Map<String, String>> getAttributes() {
- return attributes;
- }
-
- /**
- * Sets the Attributes of the Policy Parameters.
- *
- * @param attributes the <code>Map</code> Attributes that must contain the AttributeType and Map of key,value pairs corresponding to it.
- */
- public void setAttributes(Map<AttributeType, Map<String, String>> attributes) {
- this.attributes = attributes;
- }
-
- /**
- * Gets the Policy Config Type value the Policy parameters.
- *
- * @return {@link org.onap.policy.api.PolicyConfigType} Enum of the Config Type
- */
- public PolicyConfigType getPolicyConfigType() {
- return policyConfigType;
- }
-
- /**
- * Sets the Policy Config Type field of the policy Parameters.
- *
- * @param policyConfigType the {@link org.onap.policy.api.PolicyConfigType} Enum format of the Config Type
- */
- public void setPolicyConfigType(PolicyConfigType policyConfigType) {
- if(policyConfigType!=null){
- setPolicyClass(PolicyClass.Config);
- }
- this.policyConfigType = policyConfigType;
- }
-
- /**
- * Gets the configBody value of the Policy Parameters.
- *
- * @return the <code>String</code> format of the Policy Body
- */
- public String getConfigBody() {
- return configBody;
- }
-
- /**
- * Sets the configBody field of the Policy Parameters.
- *
- * @param configBody the <code>String</code> format of the Policy Body
- */
- public void setConfigBody(String configBody) {
- this.configBody = configBody;
- }
-
- /**
- * Gets the config Body Type value of the Policy Parameters.
- *
- * @return the <code>PolicyType</code> representation of the configBodyType
- */
- public PolicyType getConfigBodyType() {
- return configBodyType;
- }
-
- /**
- * Sets the configBodyType field of the Policy Parameters.
- *
- * @param configBodyType the <code>PolicyType</code> representation of the config BodyType
- */
- public void setConfigBodyType(PolicyType configBodyType) {
- this.configBodyType = configBodyType;
- }
-
- /**
- * Gets the requestID of the Policy Parameters.
- *
- * @return unique request ID which will be passed throughout the ONAP components to correlate logging messages.
- */
- public UUID getRequestID() {
- return requestID;
- }
-
- /**
- * Sets the requestID of the Policy Parameters.
- *
- * @param requestID unique request ID which will be passed throughout the ONAP components to correlate logging messages.
- */
- public void setRequestID(UUID requestID) {
- this.requestID = requestID;
- }
-
- /**
- * Gets the Policy Class of the Policy Parameters.
- *
- * @return {@link org.onap.policy.api.PolicyClass} of the Policy Parameters.
- */
- public PolicyClass getPolicyClass() {
- return policyClass;
- }
-
- /**
- * Sets the Policy Class of the Policy Parameters.
- *
- * @param policyClass the Enum {@link org.onap.policy.api.PolicyClass} to set Policy Class Type of Policy parameters.
- */
- public void setPolicyClass(PolicyClass policyClass) {
- this.policyClass = policyClass;
- }
-
- /**
- * Gets the Action Performer value of the Policy Parameters for Action Policies.
- *
- * @return the <code>String</code> value of the Action Performer for Action Policies
- */
- public String getActionPerformer() {
- return actionPerformer;
- }
-
- /**
- * Sets the Action Performer value of the Policy Parameters for Action Policies.
- *
- * @param actionPerformer the <code>String</code> format of the Action Performer
- */
- public void setActionPerformer(String actionPerformer) {
- this.actionPerformer = actionPerformer;
- }
-
- /**
- * Gets the Action Attribute value of the Policy Parameters for Action Policies.
- *
- * @return the <code>String</code> value of the Action Attribute for Action Policies
- */
- public String getActionAttribute() {
- return actionAttribute;
- }
-
- /**
- * Sets the Action Attribute value of the Policy Parameters for Action Policies.
- *
- * @param actionAttribute the <code>String</code> format of the Action Attribute
- */
- public void setActionAttribute(String actionAttribute) {
- this.actionAttribute = actionAttribute;
- }
-
- /**
- * Gets the Dynamic Rule Algorithm Label of the policy Parameters. Used in conjunction with the Label, Field1,
- * Function, and Field2 to complete the complex and simple Rule Algorithms
- *
- * @return <code>List</code> the Dynamic Rule Algorithm Label that must contain the Labels in order
- */
- public List<String> getDynamicRuleAlgorithmLabels() {
- return dynamicRuleAlgorithmLabels;
- }
-
- /**
- * Sets the Dynamic Rule Algorithm Labels used in conjunction with the Label, Field1,
- * Function, and Field2 to complete the complex and simple Rule Algorithms
- *
- * @param dynamicRuleAlgorithmLabels the <code>List</code> dynamicRuleAlgoritmLabels in order
- */
- public void setDynamicRuleAlgorithmLabels(
- List<String> dynamicRuleAlgorithmLabels) {
- this.dynamicRuleAlgorithmLabels = dynamicRuleAlgorithmLabels;
- }
-
- /**
- * Gets the Dynamic Rule Algorithm Function of the policy Parameters. Used in conjunction with the Label, Field1,
- * FunctionDef, and Field2 to complete the complex and simple Rule Algorithms
- *
- * @return <code>List</code> the Dynamic Rule Algorithm Functions that must contain the values in order
- */
- public List<String> getDynamicRuleAlgorithmFunctions() {
- return dynamicRuleAlgorithmFunctions;
- }
-
- /**
- * Sets the Dynamic Rule Algorithm Functions used in conjunction with the Label, Field1,
- * Function, and Field2 to complete the complex and simple Rule Algorithms
- *
- * @param dynamicRuleAlgorithmFunctions the <code>List</code> dynamicRuleAlgorithmFunctions in order
- */
- public void setDynamicRuleAlgorithmFunctions(List<String> dynamicRuleAlgorithmFunctions) {
- this.dynamicRuleAlgorithmFunctions = dynamicRuleAlgorithmFunctions;
- }
-
- /**
- * Gets the Dynamic Rule Algorithm Field1 of the policy Parameters. Used in conjunction with the Label, Field1,
- * Function, and Field2 to complete the complex and simple Rule Algorithms
- *
- * @return <code>List</code> the Dynamic Rule Algorithm Field1 that must contain the Field1 values in order
- */
- public List<String> getDynamicRuleAlgorithmField1() {
- return dynamicRuleAlgorithmField1;
- }
-
- /**
- * Sets the Dynamic Rule Algorithm Field1 used in conjunction with the Label, Field1,
- * Function, and Field2 to complete the complex and simple Rule Algorithms
- *
- * @param dynamicRuleAlgorithmField1 the <code>List</code> dynamicRuleAlgorithmField1 in order
- */
- public void setDynamicRuleAlgorithmField1(
- List<String> dynamicRuleAlgorithmField1) {
- this.dynamicRuleAlgorithmField1 = dynamicRuleAlgorithmField1;
- }
-
- /**
- * Gets the Dynamic Rule Algorithm Field2 of the policy Parameters. Used in conjunction with the Label, Field1,
- * Operator, and Field2 to complete the complex and simple Rule Algorithms
- *
- * @return <code>List</code> the Dynamic Rule Algorithm Field2 that must contain the Field2 values in order
- */
- public List<String> getDynamicRuleAlgorithmField2() {
- return dynamicRuleAlgorithmField2;
- }
-
- /**
- * Sets the Dynamic Rule Algorithm Field2 used in conjunction with the Label, Field1,
- * Function, and Field2 to complete the complex and simple Rule Algorithms
- *
- * @param dynamicRuleAlgorithmField2 the <code>List</code> dynamicRuleAlgorithmField2 in order
- */
- public void setDynamicRuleAlgorithmField2(
- List<String> dynamicRuleAlgorithmField2) {
- this.dynamicRuleAlgorithmField2 = dynamicRuleAlgorithmField2;
- }
-
- /**
- * Gets the Priority of the Policy Parameters.
- *
- * @return priority the <code>String</code> format of the Micro Services priority
- */
- public String getPriority() {
- return priority;
- }
-
- /**
- * Sets the Priority of the Policy Parameters.
- *
- * @param priority the <code>String</code> format of the Micro Services priority
- */
- public void setPriority(String priority) {
- this.priority = priority;
- }
-
- public RuleProvider getRuleProvider() {
- return ruleProvider;
- }
-
- public void setRuleProvider(RuleProvider ruleProvider) {
- this.ruleProvider = ruleProvider;
- }
- /**
- * Sets the Guard field of the Policy Parameters.
- *
- * @param guard the <code>Boolean</code> format of the guard value
- */
- public void setGuard(boolean guard){
- this.guard = guard;
- }
-
- /**
- * Gets the guard value of the Policy Parameters for Action Policies.
- *
- * @return the <code>boolean</code> value of the Guard for Config Policies
- */
- public boolean getGuard(){
- return guard;
- }
-
- /**
- * Sets the riskType field of the Policy Parameters.
- *
- * @param riskType the <code>String</code> format of the riskType value
- */
- public void setRiskType(String riskType){
- this.riskType = riskType;
- }
-
- /**
- * Gets the riskType value of the Policy Parameters for Config Policies.
- *
- * @return the <code>String</code> value of the riskType for Config Policies
- */
- public String getRiskType(){
- return riskType;
- }
-
- /**
- * Sets the riskLevel field of the Policy Parameters.
- *
- * @param riskLevel the <code>String</code> format of the riskType value
- */
- public void setRiskLevel(String riskLevel){
- this.riskLevel = riskLevel;
- }
-
- /**
- * Gets the riskLevel value of the Policy Parameters for Config Policies.
- *
- * @return the <code>String</code> value of the riskLevel for Config Policies
- */
- public String getRiskLevel(){
- return riskLevel;
- }
-
- /**
- * Sets the TTLDate field of the Policy Parameters.
- *
- * @param ttlDate the <code>Date</code> format of the TTLDate value
- */
- public void setTtlDate(Date ttlDate){
- this.ttlDate = ttlDate;
- }
-
- /**
- * Gets the TTLDate value of the Policy Parameters for Config Policies.
- *
- * @return the <code>Date</code> value of the TTLDate for Config Policies
- */
- public Date getTtlDate(){
- return ttlDate;
- }
-
- /**
- * Gets the Controller Name for your policy.
- *
- * @return String format of the controller Name.
- */
- public String getControllerName() {
+ /**
+ * Gets the Config Name value of the Policy Parameters.
+ *
+ * @return <code>String</code> format of the Config Name
+ */
+ public String getConfigName() {
+ return configName;
+ }
+
+ /**
+ * Sets the Config Name field of the Policy Parameters.
+ *
+ * @param configName the <code>String</code> format of the Config Name
+ */
+ public void setConfigName(String configName) {
+ this.configName = configName;
+ }
+
+ /**
+ * Gets the Attributes of the policy Parameters.
+ *
+ * @return <code>List</code> the <code>Map</code> Attributes that must contain the AttributeType and Map of key,value pairs corresponding to it.
+ */
+ public Map<AttributeType, Map<String, String>> getAttributes() {
+ return attributes;
+ }
+
+ /**
+ * Sets the Attributes of the Policy Parameters.
+ *
+ * @param attributes the <code>Map</code> Attributes that must contain the AttributeType and Map of key,value pairs corresponding to it.
+ */
+ public void setAttributes(Map<AttributeType, Map<String, String>> attributes) {
+ this.attributes = attributes;
+ }
+
+ /**
+ * Gets the Policy Config Type value the Policy parameters.
+ *
+ * @return {@link org.onap.policy.api.PolicyConfigType} Enum of the Config Type
+ */
+ public PolicyConfigType getPolicyConfigType() {
+ return policyConfigType;
+ }
+
+ /**
+ * Sets the Policy Config Type field of the policy Parameters.
+ *
+ * @param policyConfigType the {@link org.onap.policy.api.PolicyConfigType} Enum format of the Config Type
+ */
+ public void setPolicyConfigType(PolicyConfigType policyConfigType) {
+ if(policyConfigType!=null){
+ setPolicyClass(PolicyClass.Config);
+ }
+ this.policyConfigType = policyConfigType;
+ }
+
+ /**
+ * Gets the configBody value of the Policy Parameters.
+ *
+ * @return the <code>String</code> format of the Policy Body
+ */
+ public String getConfigBody() {
+ return configBody;
+ }
+
+ /**
+ * Sets the configBody field of the Policy Parameters.
+ *
+ * @param configBody the <code>String</code> format of the Policy Body
+ */
+ public void setConfigBody(String configBody) {
+ this.configBody = configBody;
+ }
+
+ /**
+ * Gets the config Body Type value of the Policy Parameters.
+ *
+ * @return the <code>PolicyType</code> representation of the configBodyType
+ */
+ public PolicyType getConfigBodyType() {
+ return configBodyType;
+ }
+
+ /**
+ * Sets the configBodyType field of the Policy Parameters.
+ *
+ * @param configBodyType the <code>PolicyType</code> representation of the config BodyType
+ */
+ public void setConfigBodyType(PolicyType configBodyType) {
+ this.configBodyType = configBodyType;
+ }
+
+ /**
+ * Gets the requestID of the Policy Parameters.
+ *
+ * @return unique request ID which will be passed throughout the ONAP components to correlate logging messages.
+ */
+ public UUID getRequestID() {
+ return requestID;
+ }
+
+ /**
+ * Sets the requestID of the Policy Parameters.
+ *
+ * @param requestID unique request ID which will be passed throughout the ONAP components to correlate logging messages.
+ */
+ public void setRequestID(UUID requestID) {
+ this.requestID = requestID;
+ }
+
+ /**
+ * Gets the Policy Class of the Policy Parameters.
+ *
+ * @return {@link org.onap.policy.api.PolicyClass} of the Policy Parameters.
+ */
+ public PolicyClass getPolicyClass() {
+ return policyClass;
+ }
+
+ /**
+ * Sets the Policy Class of the Policy Parameters.
+ *
+ * @param policyClass the Enum {@link org.onap.policy.api.PolicyClass} to set Policy Class Type of Policy parameters.
+ */
+ public void setPolicyClass(PolicyClass policyClass) {
+ this.policyClass = policyClass;
+ }
+
+ /**
+ * Gets the Action Performer value of the Policy Parameters for Action Policies.
+ *
+ * @return the <code>String</code> value of the Action Performer for Action Policies
+ */
+ public String getActionPerformer() {
+ return actionPerformer;
+ }
+
+ /**
+ * Sets the Action Performer value of the Policy Parameters for Action Policies.
+ *
+ * @param actionPerformer the <code>String</code> format of the Action Performer
+ */
+ public void setActionPerformer(String actionPerformer) {
+ this.actionPerformer = actionPerformer;
+ }
+
+ /**
+ * Gets the Action Attribute value of the Policy Parameters for Action Policies.
+ *
+ * @return the <code>String</code> value of the Action Attribute for Action Policies
+ */
+ public String getActionAttribute() {
+ return actionAttribute;
+ }
+
+ /**
+ * Sets the Action Attribute value of the Policy Parameters for Action Policies.
+ *
+ * @param actionAttribute the <code>String</code> format of the Action Attribute
+ */
+ public void setActionAttribute(String actionAttribute) {
+ this.actionAttribute = actionAttribute;
+ }
+
+ /**
+ * Gets the Dynamic Rule Algorithm Label of the policy Parameters. Used in conjunction with the Label, Field1,
+ * Function, and Field2 to complete the complex and simple Rule Algorithms
+ *
+ * @return <code>List</code> the Dynamic Rule Algorithm Label that must contain the Labels in order
+ */
+ public List<String> getDynamicRuleAlgorithmLabels() {
+ return dynamicRuleAlgorithmLabels;
+ }
+
+ /**
+ * Sets the Dynamic Rule Algorithm Labels used in conjunction with the Label, Field1,
+ * Function, and Field2 to complete the complex and simple Rule Algorithms
+ *
+ * @param dynamicRuleAlgorithmLabels the <code>List</code> dynamicRuleAlgoritmLabels in order
+ */
+ public void setDynamicRuleAlgorithmLabels(
+ List<String> dynamicRuleAlgorithmLabels) {
+ this.dynamicRuleAlgorithmLabels = dynamicRuleAlgorithmLabels;
+ }
+
+ /**
+ * Gets the Dynamic Rule Algorithm Function of the policy Parameters. Used in conjunction with the Label, Field1,
+ * FunctionDef, and Field2 to complete the complex and simple Rule Algorithms
+ *
+ * @return <code>List</code> the Dynamic Rule Algorithm Functions that must contain the values in order
+ */
+ public List<String> getDynamicRuleAlgorithmFunctions() {
+ return dynamicRuleAlgorithmFunctions;
+ }
+
+ /**
+ * Sets the Dynamic Rule Algorithm Functions used in conjunction with the Label, Field1,
+ * Function, and Field2 to complete the complex and simple Rule Algorithms
+ *
+ * @param dynamicRuleAlgorithmFunctions the <code>List</code> dynamicRuleAlgorithmFunctions in order
+ */
+ public void setDynamicRuleAlgorithmFunctions(List<String> dynamicRuleAlgorithmFunctions) {
+ this.dynamicRuleAlgorithmFunctions = dynamicRuleAlgorithmFunctions;
+ }
+
+ /**
+ * Gets the Dynamic Rule Algorithm Field1 of the policy Parameters. Used in conjunction with the Label, Field1,
+ * Function, and Field2 to complete the complex and simple Rule Algorithms
+ *
+ * @return <code>List</code> the Dynamic Rule Algorithm Field1 that must contain the Field1 values in order
+ */
+ public List<String> getDynamicRuleAlgorithmField1() {
+ return dynamicRuleAlgorithmField1;
+ }
+
+ /**
+ * Sets the Dynamic Rule Algorithm Field1 used in conjunction with the Label, Field1,
+ * Function, and Field2 to complete the complex and simple Rule Algorithms
+ *
+ * @param dynamicRuleAlgorithmField1 the <code>List</code> dynamicRuleAlgorithmField1 in order
+ */
+ public void setDynamicRuleAlgorithmField1(
+ List<String> dynamicRuleAlgorithmField1) {
+ this.dynamicRuleAlgorithmField1 = dynamicRuleAlgorithmField1;
+ }
+
+ /**
+ * Gets the Dynamic Rule Algorithm Field2 of the policy Parameters. Used in conjunction with the Label, Field1,
+ * Operator, and Field2 to complete the complex and simple Rule Algorithms
+ *
+ * @return <code>List</code> the Dynamic Rule Algorithm Field2 that must contain the Field2 values in order
+ */
+ public List<String> getDynamicRuleAlgorithmField2() {
+ return dynamicRuleAlgorithmField2;
+ }
+
+ /**
+ * Sets the Dynamic Rule Algorithm Field2 used in conjunction with the Label, Field1,
+ * Function, and Field2 to complete the complex and simple Rule Algorithms
+ *
+ * @param dynamicRuleAlgorithmField2 the <code>List</code> dynamicRuleAlgorithmField2 in order
+ */
+ public void setDynamicRuleAlgorithmField2(
+ List<String> dynamicRuleAlgorithmField2) {
+ this.dynamicRuleAlgorithmField2 = dynamicRuleAlgorithmField2;
+ }
+
+ /**
+ * Gets the Priority of the Policy Parameters.
+ *
+ * @return priority the <code>String</code> format of the Micro Services priority
+ */
+ public String getPriority() {
+ return priority;
+ }
+
+ /**
+ * Sets the Priority of the Policy Parameters.
+ *
+ * @param priority the <code>String</code> format of the Micro Services priority
+ */
+ public void setPriority(String priority) {
+ this.priority = priority;
+ }
+
+ public RuleProvider getRuleProvider() {
+ return ruleProvider;
+ }
+
+ public void setRuleProvider(RuleProvider ruleProvider) {
+ this.ruleProvider = ruleProvider;
+ }
+ /**
+ * Sets the Guard field of the Policy Parameters.
+ *
+ * @param guard the <code>Boolean</code> format of the guard value
+ */
+ public void setGuard(boolean guard){
+ this.guard = guard;
+ }
+
+ /**
+ * Gets the guard value of the Policy Parameters for Action Policies.
+ *
+ * @return the <code>boolean</code> value of the Guard for Config Policies
+ */
+ public boolean getGuard(){
+ return guard;
+ }
+
+ /**
+ * Sets the riskType field of the Policy Parameters.
+ *
+ * @param riskType the <code>String</code> format of the riskType value
+ */
+ public void setRiskType(String riskType){
+ this.riskType = riskType;
+ }
+
+ /**
+ * Gets the riskType value of the Policy Parameters for Config Policies.
+ *
+ * @return the <code>String</code> value of the riskType for Config Policies
+ */
+ public String getRiskType(){
+ return riskType;
+ }
+
+ /**
+ * Sets the riskLevel field of the Policy Parameters.
+ *
+ * @param riskLevel the <code>String</code> format of the riskType value
+ */
+ public void setRiskLevel(String riskLevel){
+ this.riskLevel = riskLevel;
+ }
+
+ /**
+ * Gets the riskLevel value of the Policy Parameters for Config Policies.
+ *
+ * @return the <code>String</code> value of the riskLevel for Config Policies
+ */
+ public String getRiskLevel(){
+ return riskLevel;
+ }
+
+ /**
+ * Sets the TTLDate field of the Policy Parameters.
+ *
+ * @param ttlDate the <code>Date</code> format of the TTLDate value
+ */
+ public void setTtlDate(Date ttlDate){
+ this.ttlDate = ttlDate;
+ }
+
+ /**
+ * Gets the TTLDate value of the Policy Parameters for Config Policies.
+ *
+ * @return the <code>Date</code> value of the TTLDate for Config Policies
+ */
+ public Date getTtlDate(){
+ return ttlDate;
+ }
+
+ /**
+ * Gets the Controller Name for your policy.
+ *
+ * @return String format of the controller Name.
+ */
+ public String getControllerName() {
return controllerName;
}
-
- /**
- * Sets Controller Name for your policy.
- *
- * @param controllerName to identify the controller information for your policy.
- */
+
+ /**
+ * Sets Controller Name for your policy.
+ *
+ * @param controllerName to identify the controller information for your policy.
+ */
public void setControllerName(String controllerName) {
this.controllerName = controllerName;
}
@@ -560,41 +549,41 @@ public class PolicyParameters {
public void setDependencyNames(List<String> dependencyNames) {
this.dependencyNames = dependencyNames;
}
-
+
public String getExtendedOption() {
- return extendedOption;
- }
-
- public void setExtendedOption(String extendedOption) {
- this.extendedOption = extendedOption;
- }
-
- /**
+ return extendedOption;
+ }
+
+ public void setExtendedOption(String extendedOption) {
+ this.extendedOption = extendedOption;
+ }
+
+ /**
* Gets Allowed Treatments Map for Rainy Day Decision Policy
*
* @return Map of String format for treatments per errorcode
*/
- public Map<String, String> getTreatments() {
- return treatments;
- }
-
- /**
- * Sets Allowed Treatments Map for Rainy Day Decision Policy
- *
- * @param treatments Map that contains the treatment per errorcode
- */
- public void setTreatments(Map<String, String> treatments) {
- this.treatments = treatments;
- }
-
- @Override
- public String toString() {
- return "PolicyParameters [ policyName=" + policyName + ", policyDescription=" + policyDescription + ", onapName="+ onapName
- + ", configName=" + configName + ", attributes=" + attributes + ", configBody=" + configBody
- + ",dynamicRuleAlgorithmLabels=" + dynamicRuleAlgorithmLabels + ",dynamicRuleAlgorithmFunctions=" + dynamicRuleAlgorithmFunctions
- + ",dynamicRuleAlgorithmField1=" + dynamicRuleAlgorithmField1 + ",dynamicRuleAlgorithmField2=" + dynamicRuleAlgorithmField2
- + ", actionPerformer=" + actionPerformer + ", actionAttribute=" + actionAttribute + ", priority=" + priority
- + ", ruleProvider= " + ruleProvider + ", riskLevel= " + riskLevel + ", riskType= " + riskType + ", extendedOption= " + extendedOption
- + ", treatments= " + treatments + "]";
- }
+ public Map<String, String> getTreatments() {
+ return treatments;
+ }
+
+ /**
+ * Sets Allowed Treatments Map for Rainy Day Decision Policy
+ *
+ * @param treatments Map that contains the treatment per errorcode
+ */
+ public void setTreatments(Map<String, String> treatments) {
+ this.treatments = treatments;
+ }
+
+ @Override
+ public String toString() {
+ return "PolicyParameters [ policyName=" + policyName + ", policyDescription=" + policyDescription + ", onapName="+ onapName
+ + ", configName=" + configName + ", attributes=" + attributes + ", configBody=" + configBody
+ + ",dynamicRuleAlgorithmLabels=" + dynamicRuleAlgorithmLabels + ",dynamicRuleAlgorithmFunctions=" + dynamicRuleAlgorithmFunctions
+ + ",dynamicRuleAlgorithmField1=" + dynamicRuleAlgorithmField1 + ",dynamicRuleAlgorithmField2=" + dynamicRuleAlgorithmField2
+ + ", actionPerformer=" + actionPerformer + ", actionAttribute=" + actionAttribute + ", priority=" + priority
+ + ", ruleProvider= " + ruleProvider + ", riskLevel= " + riskLevel + ", riskType= " + riskType + ", extendedOption= " + extendedOption
+ + ", treatments= " + treatments + "]";
+ }
}
diff --git a/PolicyEngineAPI/src/test/java/org/onap/policy/test/PolicyParametersTest.java b/PolicyEngineAPI/src/test/java/org/onap/policy/test/PolicyParametersTest.java
index c0bc0e84f..47fb38073 100644
--- a/PolicyEngineAPI/src/test/java/org/onap/policy/test/PolicyParametersTest.java
+++ b/PolicyEngineAPI/src/test/java/org/onap/policy/test/PolicyParametersTest.java
@@ -35,10 +35,12 @@ import org.junit.Before;
import org.junit.Test;
import org.onap.policy.api.AttributeType;
import org.onap.policy.api.PolicyClass;
+import org.onap.policy.api.PolicyConfigParams;
import org.onap.policy.api.PolicyConfigType;
import org.onap.policy.api.PolicyParameters;
import org.onap.policy.api.PolicyType;
+
/**
* The class <code>PolicyParametersTest</code> contains tests for the class <code>{@link PolicyParameters}</code>.
*
@@ -46,1389 +48,1399 @@ import org.onap.policy.api.PolicyType;
* @version $Revision: 1.0 $
*/
public class PolicyParametersTest {
-
- @Test
- public void testEverythingElse() {
- PolicyParameters params = new PolicyParameters();
- params.setRuleProvider(null);
- assertNull(params.getRuleProvider());
- params.setGuard(false);
- assertFalse(params.getGuard());
- params.setRiskLevel("level");
- assertEquals("level", params.getRiskLevel());
- params.setRiskType("type");
- assertEquals("type", params.getRiskType());
- params.setTtlDate(new Date());
- assertNotNull(params.getTtlDate());
- params.setControllerName(null);
- assertNull(params.getControllerName());
- params.setDependencyNames(Collections.emptyList());
- params.setExtendedOption(null);
- assertNull(params.getExtendedOption());
- params.setTreatments(Collections.emptyMap());
- assertTrue(params.getTreatments().size() == 0);
- assertNotNull(params.toString());
- }
-
- /**
- * Run the String getActionAttribute() method test.
- *
- * @throws Exception
- *
- * @generatedBy CodePro at 6/1/16 1:41 PM
- */
- @Test
- public void testGetActionAttribute_1()
- throws Exception {
- PolicyParameters fixture = new PolicyParameters();
- fixture.setRequestID(UUID.randomUUID());
- fixture.setActionAttribute("");
- fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
- fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
- fixture.setPolicyDescription("");
- fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
- fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
- fixture.setPolicyName("");
- fixture.setConfigName("");
- fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
- fixture.setPolicyClass(PolicyClass.Action);
- fixture.setOnapName("");
- fixture.setConfigBodyType(PolicyType.JSON);
- fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
- fixture.setPriority("");
- fixture.setActionPerformer("");
- fixture.setConfigBody("");
-
- String result = fixture.getActionAttribute();
-
- // add additional test code here
- assertEquals("", result);
- }
-
- /**
- * Run the String getActionPerformer() method test.
- *
- * @throws Exception
- *
- * @generatedBy CodePro at 6/1/16 1:41 PM
- */
- @Test
- public void testGetActionPerformer_1()
- throws Exception {
- PolicyParameters fixture = new PolicyParameters();
- fixture.setRequestID(UUID.randomUUID());
- fixture.setActionAttribute("");
- fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
- fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
- fixture.setPolicyDescription("");
- fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
- fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
- fixture.setPolicyName("");
- fixture.setConfigName("");
- fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
- fixture.setPolicyClass(PolicyClass.Action);
- fixture.setOnapName("");
- fixture.setConfigBodyType(PolicyType.JSON);
- fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
- fixture.setPriority("");
- fixture.setActionPerformer("");
- fixture.setConfigBody("");
-
- String result = fixture.getActionPerformer();
-
- // add additional test code here
- assertEquals("", result);
- }
-
- /**
- * Run the Map<AttributeType, Map<String, String>> getAttributes() method test.
- *
- * @throws Exception
- *
- * @generatedBy CodePro at 6/1/16 1:41 PM
- */
- @Test
- public void testGetAttributes_1()
- throws Exception {
- PolicyParameters fixture = new PolicyParameters();
- fixture.setRequestID(UUID.randomUUID());
- fixture.setActionAttribute("");
- fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
- fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
- fixture.setPolicyDescription("");
-
- fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
- fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
- fixture.setPolicyName("");
- fixture.setConfigName("");
- fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
- fixture.setPolicyClass(PolicyClass.Action);
- fixture.setOnapName("");
- fixture.setConfigBodyType(PolicyType.JSON);
- fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
- fixture.setPriority("");
- fixture.setActionPerformer("");
- fixture.setConfigBody("");
-
- Map<AttributeType, Map<String, String>> result = fixture.getAttributes();
-
- // add additional test code here
- assertNotNull(result);
- assertEquals(0, result.size());
- }
-
- /**
- * Run the String getConfigBody() method test.
- *
- * @throws Exception
- *
- * @generatedBy CodePro at 6/1/16 1:41 PM
- */
- @Test
- public void testGetConfigBody_1()
- throws Exception {
- PolicyParameters fixture = new PolicyParameters();
- fixture.setRequestID(UUID.randomUUID());
- fixture.setActionAttribute("");
- fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
- fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
- fixture.setPolicyDescription("");
-
- fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
- fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
- fixture.setPolicyName("");
- fixture.setConfigName("");
- fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
- fixture.setPolicyClass(PolicyClass.Action);
- fixture.setOnapName("");
- fixture.setConfigBodyType(PolicyType.JSON);
- fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
- fixture.setPriority("");
- fixture.setActionPerformer("");
- fixture.setConfigBody("");
-
- String result = fixture.getConfigBody();
-
- // add additional test code here
- assertEquals("", result);
- }
-
- /**
- * Run the PolicyType getConfigBodyType() method test.
- *
- * @throws Exception
- *
- * @generatedBy CodePro at 6/1/16 1:41 PM
- */
- @Test
- public void testGetConfigBodyType_1()
- throws Exception {
- PolicyParameters fixture = new PolicyParameters();
- fixture.setRequestID(UUID.randomUUID());
- fixture.setActionAttribute("");
- fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
- fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
- fixture.setPolicyDescription("");
-
- fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
- fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
- fixture.setPolicyName("");
- fixture.setConfigName("");
- fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
- fixture.setPolicyClass(PolicyClass.Action);
- fixture.setOnapName("");
- fixture.setConfigBodyType(PolicyType.JSON);
- fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
- fixture.setPriority("");
- fixture.setActionPerformer("");
- fixture.setConfigBody("");
-
- PolicyType result = fixture.getConfigBodyType();
-
- // add additional test code here
- assertNotNull(result);
- assertEquals("json", result.toString());
- assertEquals("JSON", result.name());
- assertEquals(1, result.ordinal());
- }
-
- /**
- * Run the String getConfigName() method test.
- *
- * @throws Exception
- *
- * @generatedBy CodePro at 6/1/16 1:41 PM
- */
- @Test
- public void testGetConfigName_1()
- throws Exception {
- PolicyParameters fixture = new PolicyParameters();
- fixture.setRequestID(UUID.randomUUID());
- fixture.setActionAttribute("");
- fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
- fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
- fixture.setPolicyDescription("");
-
- fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
- fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
- fixture.setPolicyName("");
- fixture.setConfigName("");
- fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
- fixture.setPolicyClass(PolicyClass.Action);
- fixture.setOnapName("");
- fixture.setConfigBodyType(PolicyType.JSON);
- fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
- fixture.setPriority("");
- fixture.setActionPerformer("");
- fixture.setConfigBody("");
-
- String result = fixture.getConfigName();
-
- // add additional test code here
- assertEquals("", result);
- }
-
- /**
- * Run the List<String> getDynamicRuleAlgorithmField1() method test.
- *
- * @throws Exception
- *
- * @generatedBy CodePro at 6/1/16 1:41 PM
- */
- @Test
- public void testGetDynamicRuleAlgorithmField1_1()
- throws Exception {
- PolicyParameters fixture = new PolicyParameters();
- fixture.setRequestID(UUID.randomUUID());
- fixture.setActionAttribute("");
- fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
- fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
- fixture.setPolicyDescription("");
-
- fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
- fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
- fixture.setPolicyName("");
- fixture.setConfigName("");
- fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
- fixture.setPolicyClass(PolicyClass.Action);
- fixture.setOnapName("");
- fixture.setConfigBodyType(PolicyType.JSON);
- fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
- fixture.setPriority("");
- fixture.setActionPerformer("");
- fixture.setConfigBody("");
-
- List<String> result = fixture.getDynamicRuleAlgorithmField1();
-
- // add additional test code here
- assertNotNull(result);
- assertEquals(0, result.size());
- }
-
- /**
- * Run the List<String> getDynamicRuleAlgorithmField2() method test.
- *
- * @throws Exception
- *
- * @generatedBy CodePro at 6/1/16 1:41 PM
- */
- @Test
- public void testGetDynamicRuleAlgorithmField2_1()
- throws Exception {
- PolicyParameters fixture = new PolicyParameters();
- fixture.setRequestID(UUID.randomUUID());
- fixture.setActionAttribute("");
- fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
- fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
- fixture.setPolicyDescription("");
-
- fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
- fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
- fixture.setPolicyName("");
- fixture.setConfigName("");
- fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
- fixture.setPolicyClass(PolicyClass.Action);
- fixture.setOnapName("");
- fixture.setConfigBodyType(PolicyType.JSON);
- fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
- fixture.setPriority("");
- fixture.setActionPerformer("");
- fixture.setConfigBody("");
-
- List<String> result = fixture.getDynamicRuleAlgorithmField2();
-
- // add additional test code here
- assertNotNull(result);
- assertEquals(0, result.size());
- }
-
- /**
- * Run the List<String> getDynamicRuleAlgorithmFunctions() method test.
- *
- * @throws Exception
- *
- * @generatedBy CodePro at 6/1/16 1:41 PM
- */
- @Test
- public void testGetDynamicRuleAlgorithmFunctions_1()
- throws Exception {
- PolicyParameters fixture = new PolicyParameters();
- fixture.setRequestID(UUID.randomUUID());
- fixture.setActionAttribute("");
- fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
- fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
- fixture.setPolicyDescription("");
-
- fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
- fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
- fixture.setPolicyName("");
- fixture.setConfigName("");
- fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
- fixture.setPolicyClass(PolicyClass.Action);
- fixture.setOnapName("");
- fixture.setConfigBodyType(PolicyType.JSON);
- fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
- fixture.setPriority("");
- fixture.setActionPerformer("");
- fixture.setConfigBody("");
-
- List<String> result = fixture.getDynamicRuleAlgorithmFunctions();
-
- // add additional test code here
- assertNotNull(result);
- assertEquals(0, result.size());
- }
-
- /**
- * Run the List<String> getDynamicRuleAlgorithmLabels() method test.
- *
- * @throws Exception
- *
- * @generatedBy CodePro at 6/1/16 1:41 PM
- */
- @Test
- public void testGetDynamicRuleAlgorithmLabels_1()
- throws Exception {
- PolicyParameters fixture = new PolicyParameters();
- fixture.setRequestID(UUID.randomUUID());
- fixture.setActionAttribute("");
- fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
- fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
- fixture.setPolicyDescription("");
-
- fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
- fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
- fixture.setPolicyName("");
- fixture.setConfigName("");
- fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
- fixture.setPolicyClass(PolicyClass.Action);
- fixture.setOnapName("");
- fixture.setConfigBodyType(PolicyType.JSON);
- fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
- fixture.setPriority("");
- fixture.setActionPerformer("");
- fixture.setConfigBody("");
-
- List<String> result = fixture.getDynamicRuleAlgorithmLabels();
-
- // add additional test code here
- assertNotNull(result);
- assertEquals(0, result.size());
- }
-
- /**
- * Run the String getOnapName() method test.
- *
- * @throws Exception
- *
- * @generatedBy CodePro at 6/1/16 1:41 PM
- */
- @Test
- public void testGetOnapName_1()
- throws Exception {
- PolicyParameters fixture = new PolicyParameters();
- fixture.setRequestID(UUID.randomUUID());
- fixture.setActionAttribute("");
- fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
- fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
- fixture.setPolicyDescription("");
-
- fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
- fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
- fixture.setPolicyName("");
- fixture.setConfigName("");
- fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
- fixture.setPolicyClass(PolicyClass.Action);
- fixture.setOnapName("");
- fixture.setConfigBodyType(PolicyType.JSON);
- fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
- fixture.setPriority("");
- fixture.setActionPerformer("");
- fixture.setConfigBody("");
-
- String result = fixture.getOnapName();
-
- // add additional test code here
- assertEquals("", result);
- }
-
- /**
- * Run the PolicyClass getPolicyClass() method test.
- *
- * @throws Exception
- *
- * @generatedBy CodePro at 6/1/16 1:41 PM
- */
- @Test
- public void testGetPolicyClass_1()
- throws Exception {
- PolicyParameters fixture = new PolicyParameters();
- fixture.setRequestID(UUID.randomUUID());
- fixture.setActionAttribute("");
- fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
- fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
- fixture.setPolicyDescription("");
-
- fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
- fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
- fixture.setPolicyName("");
- fixture.setConfigName("");
- fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
- fixture.setPolicyClass(PolicyClass.Action);
- fixture.setOnapName("");
- fixture.setConfigBodyType(PolicyType.JSON);
- fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
- fixture.setPriority("");
- fixture.setActionPerformer("");
- fixture.setConfigBody("");
-
- PolicyClass result = fixture.getPolicyClass();
-
- // add additional test code here
- assertNotNull(result);
- assertEquals("Action", result.toString());
- assertEquals("Action", result.name());
- assertEquals(1, result.ordinal());
- }
-
- /**
- * Run the PolicyConfigType getPolicyConfigType() method test.
- *
- * @throws Exception
- *
- * @generatedBy CodePro at 6/1/16 1:41 PM
- */
- @Test
- public void testGetPolicyConfigType_1()
- throws Exception {
- PolicyParameters fixture = new PolicyParameters();
- fixture.setRequestID(UUID.randomUUID());
- fixture.setActionAttribute("");
- fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
- fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
- fixture.setPolicyDescription("");
-
- fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
- fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
- fixture.setPolicyName("");
- fixture.setConfigName("");
- fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
- fixture.setPolicyClass(PolicyClass.Action);
- fixture.setOnapName("");
- fixture.setConfigBodyType(PolicyType.JSON);
- fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
- fixture.setPriority("");
- fixture.setActionPerformer("");
- fixture.setConfigBody("");
-
- PolicyConfigType result = (PolicyConfigType) fixture.getPolicyConfigType();
-
- // add additional test code here
- assertNotNull(result);
- assertEquals("BRMS_Param", result.toString());
- assertEquals("BRMS_PARAM", result.name());
- assertEquals(5, result.ordinal());
- }
-
- /**
- * Run the String getPolicyDescription() method test.
- *
- * @throws Exception
- *
- * @generatedBy CodePro at 6/1/16 1:41 PM
- */
- @Test
- public void testGetPolicyDescription_1()
- throws Exception {
- PolicyParameters fixture = new PolicyParameters();
- fixture.setRequestID(UUID.randomUUID());
- fixture.setActionAttribute("");
- fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
- fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
- fixture.setPolicyDescription("");
-
- fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
- fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
- fixture.setPolicyName("");
- fixture.setConfigName("");
- fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
- fixture.setPolicyClass(PolicyClass.Action);
- fixture.setOnapName("");
- fixture.setConfigBodyType(PolicyType.JSON);
- fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
- fixture.setPriority("");
- fixture.setActionPerformer("");
- fixture.setConfigBody("");
-
- String result = fixture.getPolicyDescription();
-
- // add additional test code here
- assertEquals("", result);
- }
-
- /**
- * Run the String getPolicyName() method test.
- *
- * @throws Exception
- *
- * @generatedBy CodePro at 6/1/16 1:41 PM
- */
- @Test
- public void testGetPolicyName_1()
- throws Exception {
- PolicyParameters fixture = new PolicyParameters();
- fixture.setRequestID(UUID.randomUUID());
- fixture.setActionAttribute("");
- fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
- fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
- fixture.setPolicyDescription("");
-
- fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
- fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
- fixture.setPolicyName("");
- fixture.setConfigName("");
- fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
- fixture.setPolicyClass(PolicyClass.Action);
- fixture.setOnapName("");
- fixture.setConfigBodyType(PolicyType.JSON);
- fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
- fixture.setPriority("");
- fixture.setActionPerformer("");
- fixture.setConfigBody("");
-
- String result = fixture.getPolicyName();
-
- // add additional test code here
- assertEquals("", result);
- }
-
- /**
- * Run the String getPriority() method test.
- *
- * @throws Exception
- *
- * @generatedBy CodePro at 6/1/16 1:41 PM
- */
- @Test
- public void testGetPriority_1()
- throws Exception {
- PolicyParameters fixture = new PolicyParameters();
- fixture.setRequestID(UUID.randomUUID());
- fixture.setActionAttribute("");
- fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
- fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
- fixture.setPolicyDescription("");
-
- fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
- fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
- fixture.setPolicyName("");
- fixture.setConfigName("");
- fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
- fixture.setPolicyClass(PolicyClass.Action);
- fixture.setOnapName("");
- fixture.setConfigBodyType(PolicyType.JSON);
- fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
- fixture.setPriority("");
- fixture.setActionPerformer("");
- fixture.setConfigBody("");
-
- String result = fixture.getPriority();
-
- // add additional test code here
- assertEquals("", result);
- }
-
- /**
- * Run the UUID getRequestID() method test.
- *
- * @throws Exception
- *
- * @generatedBy CodePro at 6/1/16 1:41 PM
- */
- @Test
- public void testGetRequestID_1()
- throws Exception {
- PolicyParameters fixture = new PolicyParameters();
- fixture.setRequestID(UUID.fromString("878d319c-2799-4684-b480-99f40e1042b2"));
- fixture.setActionAttribute("");
- fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
- fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
- fixture.setPolicyDescription("");
-
- fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
- fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
- fixture.setPolicyName("");
- fixture.setConfigName("");
- fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
- fixture.setPolicyClass(PolicyClass.Action);
- fixture.setOnapName("");
- fixture.setConfigBodyType(PolicyType.JSON);
- fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
- fixture.setPriority("");
- fixture.setActionPerformer("");
- fixture.setConfigBody("");
-
- UUID result = fixture.getRequestID();
-
- // add additional test code here
- assertNotNull(result);
- assertEquals("878d319c-2799-4684-b480-99f40e1042b2", result.toString());
- assertEquals(4, result.version());
- assertEquals(2, result.variant());
- assertEquals(-5440179076376542542L, result.getLeastSignificantBits());
- assertEquals(-8679226360124062076L, result.getMostSignificantBits());
- }
-
- /**
- * Run the void setActionAttribute(String) method test.
- *
- * @throws Exception
- *
- * @generatedBy CodePro at 6/1/16 1:41 PM
- */
- @Test
- public void testSetActionAttribute_1()
- throws Exception {
- PolicyParameters fixture = new PolicyParameters();
- fixture.setRequestID(UUID.randomUUID());
- fixture.setActionAttribute("");
- fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
- fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
- fixture.setPolicyDescription("");
-
- fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
- fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
- fixture.setPolicyName("");
- fixture.setConfigName("");
- fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
- fixture.setPolicyClass(PolicyClass.Action);
- fixture.setOnapName("");
- fixture.setConfigBodyType(PolicyType.JSON);
- fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
- fixture.setPriority("");
- fixture.setActionPerformer("");
- fixture.setConfigBody("");
- String actionAttribute = "";
-
- fixture.setActionAttribute(actionAttribute);
-
- // add additional test code here
- }
-
- /**
- * Run the void setActionPerformer(String) method test.
- *
- * @throws Exception
- *
- * @generatedBy CodePro at 6/1/16 1:41 PM
- */
- @Test
- public void testSetActionPerformer_1()
- throws Exception {
- PolicyParameters fixture = new PolicyParameters();
- fixture.setRequestID(UUID.randomUUID());
- fixture.setActionAttribute("");
- fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
- fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
- fixture.setPolicyDescription("");
-
- fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
- fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
- fixture.setPolicyName("");
- fixture.setConfigName("");
- fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
- fixture.setPolicyClass(PolicyClass.Action);
- fixture.setOnapName("");
- fixture.setConfigBodyType(PolicyType.JSON);
- fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
- fixture.setPriority("");
- fixture.setActionPerformer("");
- fixture.setConfigBody("");
- String actionPerformer = "";
-
- fixture.setActionPerformer(actionPerformer);
-
- // add additional test code here
- }
-
- /**
- * Run the void setAttributes(Map<AttributeType,Map<String,String>>) method test.
- *
- * @throws Exception
- *
- * @generatedBy CodePro at 6/1/16 1:41 PM
- */
- @Test
- public void testSetAttributes_1()
- throws Exception {
- PolicyParameters fixture = new PolicyParameters();
- fixture.setRequestID(UUID.randomUUID());
- fixture.setActionAttribute("");
- fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
- fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
- fixture.setPolicyDescription("");
-
- fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
- fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
- fixture.setPolicyName("");
- fixture.setConfigName("");
- fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
- fixture.setPolicyClass(PolicyClass.Action);
- fixture.setOnapName("");
- fixture.setConfigBodyType(PolicyType.JSON);
- fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
- fixture.setPriority("");
- fixture.setActionPerformer("");
- fixture.setConfigBody("");
- Map<AttributeType, Map<String, String>> attributes = new Hashtable<AttributeType, Map<String, String>>();
-
- fixture.setAttributes(attributes);
-
- // add additional test code here
- }
-
- /**
- * Run the void setConfigBody(String) method test.
- *
- * @throws Exception
- *
- * @generatedBy CodePro at 6/1/16 1:41 PM
- */
- @Test
- public void testSetConfigBody_1()
- throws Exception {
- PolicyParameters fixture = new PolicyParameters();
- fixture.setRequestID(UUID.randomUUID());
- fixture.setActionAttribute("");
- fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
- fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
- fixture.setPolicyDescription("");
-
- fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
- fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
- fixture.setPolicyName("");
- fixture.setConfigName("");
- fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
- fixture.setPolicyClass(PolicyClass.Action);
- fixture.setOnapName("");
- fixture.setConfigBodyType(PolicyType.JSON);
- fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
- fixture.setPriority("");
- fixture.setActionPerformer("");
- fixture.setConfigBody("");
- String configBody = "";
-
- fixture.setConfigBody(configBody);
-
- // add additional test code here
- }
-
- /**
- * Run the void setConfigBodyType(PolicyType) method test.
- *
- * @throws Exception
- *
- * @generatedBy CodePro at 6/1/16 1:41 PM
- */
- @Test
- public void testSetConfigBodyType_1()
- throws Exception {
- PolicyParameters fixture = new PolicyParameters();
- fixture.setRequestID(UUID.randomUUID());
- fixture.setActionAttribute("");
- fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
- fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
- fixture.setPolicyDescription("");
-
- fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
- fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
- fixture.setPolicyName("");
- fixture.setConfigName("");
- fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
- fixture.setPolicyClass(PolicyClass.Action);
- fixture.setOnapName("");
- fixture.setConfigBodyType(PolicyType.JSON);
- fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
- fixture.setPriority("");
- fixture.setActionPerformer("");
- fixture.setConfigBody("");
- PolicyType configBodyType = PolicyType.JSON;
-
- fixture.setConfigBodyType(configBodyType);
-
- // add additional test code here
- }
-
- /**
- * Run the void setConfigFirewallPolicyParameters(String,String,UUID) method test.
- *
- * @throws Exception
- *
- * @generatedBy CodePro at 6/1/16 1:41 PM
- */
- @Test
- public void testSetConfigFirewallPolicyParameters_1()
- throws Exception {
- PolicyParameters fixture = new PolicyParameters();
- fixture.setRequestID(UUID.randomUUID());
- fixture.setActionAttribute("");
- fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
- fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
- fixture.setPolicyDescription("");
-
- fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
- fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
- fixture.setPolicyName("");
- fixture.setConfigName("");
- fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
- fixture.setPolicyClass(PolicyClass.Action);
- fixture.setOnapName("");
- fixture.setConfigBodyType(PolicyType.JSON);
- fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
- fixture.setPriority("");
- fixture.setActionPerformer("");
- fixture.setConfigBody("");
- String policyName = "";
- String firewallJson = "";
- UUID requestID = UUID.randomUUID();
-
- fixture.setConfigFirewallPolicyParameters(policyName, firewallJson, requestID);
-
- // add additional test code here
- }
-
- /**
- * Run the void setConfigName(String) method test.
- *
- * @throws Exception
- *
- * @generatedBy CodePro at 6/1/16 1:41 PM
- */
- @Test
- public void testSetConfigName_1()
- throws Exception {
- PolicyParameters fixture = new PolicyParameters();
- fixture.setRequestID(UUID.randomUUID());
- fixture.setActionAttribute("");
- fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
- fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
- fixture.setPolicyDescription("");
-
- fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
- fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
- fixture.setPolicyName("");
- fixture.setConfigName("");
- fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
- fixture.setPolicyClass(PolicyClass.Action);
- fixture.setOnapName("");
- fixture.setConfigBodyType(PolicyType.JSON);
- fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
- fixture.setPriority("");
- fixture.setActionPerformer("");
- fixture.setConfigBody("");
- String configName = "";
-
- fixture.setConfigName(configName);
-
- // add additional test code here
- }
-
- /**
- * Run the void setConfigPolicyParameters(PolicyConfigType,String,String,String,String,Map<AttributeType,Map<String,String>>,PolicyType,String,UUID) method test.
- *
- * @throws Exception
- *
- * @generatedBy CodePro at 6/1/16 1:41 PM
- */
- @Test
- public void testSetConfigPolicyParameters_1()
- throws Exception {
- PolicyParameters fixture = new PolicyParameters();
- fixture.setRequestID(UUID.randomUUID());
- fixture.setActionAttribute("");
- fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
- fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
- fixture.setPolicyDescription("");
-
- fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
- fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
- fixture.setPolicyName("");
- fixture.setConfigName("");
- fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
- fixture.setPolicyClass(PolicyClass.Action);
- fixture.setOnapName("");
- fixture.setConfigBodyType(PolicyType.JSON);
- fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
- fixture.setPriority("");
- fixture.setActionPerformer("");
- fixture.setConfigBody("");
- PolicyConfigType policyConfigType = PolicyConfigType.BRMS_PARAM;
- String policyName = "";
- String policyDescription = "";
- String onapName = "";
- String configName = "";
- Map<AttributeType, Map<String, String>> attributes = new Hashtable<AttributeType, Map<String, String>>();
- PolicyType configBodyType = PolicyType.JSON;
- String configBody = "";
- UUID requestID = UUID.randomUUID();
-
- fixture.setConfigPolicyParameters(policyConfigType, policyName, policyDescription, onapName, configName, attributes, configBodyType, configBody, requestID);
-
- // add additional test code here
- }
-
- /**
- * Run the void setDynamicRuleAlgorithmField1(List<String>) method test.
- *
- * @throws Exception
- *
- * @generatedBy CodePro at 6/1/16 1:41 PM
- */
- @Test
- public void testSetDynamicRuleAlgorithmField1_1()
- throws Exception {
- PolicyParameters fixture = new PolicyParameters();
- fixture.setRequestID(UUID.randomUUID());
- fixture.setActionAttribute("");
- fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
- fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
- fixture.setPolicyDescription("");
-
- fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
- fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
- fixture.setPolicyName("");
- fixture.setConfigName("");
- fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
- fixture.setPolicyClass(PolicyClass.Action);
- fixture.setOnapName("");
- fixture.setConfigBodyType(PolicyType.JSON);
- fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
- fixture.setPriority("");
- fixture.setActionPerformer("");
- fixture.setConfigBody("");
- List<String> dynamicRuleAlgorithmField1 = new LinkedList<String>();
-
- fixture.setDynamicRuleAlgorithmField1(dynamicRuleAlgorithmField1);
-
- // add additional test code here
- }
-
- /**
- * Run the void setDynamicRuleAlgorithmField2(List<String>) method test.
- *
- * @throws Exception
- *
- * @generatedBy CodePro at 6/1/16 1:41 PM
- */
- @Test
- public void testSetDynamicRuleAlgorithmField2_1()
- throws Exception {
- PolicyParameters fixture = new PolicyParameters();
- fixture.setRequestID(UUID.randomUUID());
- fixture.setActionAttribute("");
- fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
- fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
- fixture.setPolicyDescription("");
-
- fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
- fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
- fixture.setPolicyName("");
- fixture.setConfigName("");
- fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
- fixture.setPolicyClass(PolicyClass.Action);
- fixture.setOnapName("");
- fixture.setConfigBodyType(PolicyType.JSON);
- fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
- fixture.setPriority("");
- fixture.setActionPerformer("");
- fixture.setConfigBody("");
- List<String> dynamicRuleAlgorithmField2 = new LinkedList<String>();
-
- fixture.setDynamicRuleAlgorithmField2(dynamicRuleAlgorithmField2);
-
- // add additional test code here
- }
-
- /**
- * Run the void setDynamicRuleAlgorithmFunctions(List<String>) method test.
- *
- * @throws Exception
- *
- * @generatedBy CodePro at 6/1/16 1:41 PM
- */
- @Test
- public void testSetDynamicRuleAlgorithmFunctions_1()
- throws Exception {
- PolicyParameters fixture = new PolicyParameters();
- fixture.setRequestID(UUID.randomUUID());
- fixture.setActionAttribute("");
- fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
- fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
- fixture.setPolicyDescription("");
-
- fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
- fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
- fixture.setPolicyName("");
- fixture.setConfigName("");
- fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
- fixture.setPolicyClass(PolicyClass.Action);
- fixture.setOnapName("");
- fixture.setConfigBodyType(PolicyType.JSON);
- fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
- fixture.setPriority("");
- fixture.setActionPerformer("");
- fixture.setConfigBody("");
- List<String> dynamicRuleAlgorithmFunctions = new LinkedList<String>();
-
- fixture.setDynamicRuleAlgorithmFunctions(dynamicRuleAlgorithmFunctions);
-
- // add additional test code here
- }
-
- /**
- * Run the void setDynamicRuleAlgorithmLabels(List<String>) method test.
- *
- * @throws Exception
- *
- * @generatedBy CodePro at 6/1/16 1:41 PM
- */
- @Test
- public void testSetDynamicRuleAlgorithmLabels_1()
- throws Exception {
- PolicyParameters fixture = new PolicyParameters();
- fixture.setRequestID(UUID.randomUUID());
- fixture.setActionAttribute("");
- fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
- fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
- fixture.setPolicyDescription("");
-
- fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
- fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
- fixture.setPolicyName("");
- fixture.setConfigName("");
- fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
- fixture.setPolicyClass(PolicyClass.Action);
- fixture.setOnapName("");
- fixture.setConfigBodyType(PolicyType.JSON);
- fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
- fixture.setPriority("");
- fixture.setActionPerformer("");
- fixture.setConfigBody("");
- List<String> dynamicRuleAlgorithmLabels = new LinkedList<String>();
-
- fixture.setDynamicRuleAlgorithmLabels(dynamicRuleAlgorithmLabels);
-
- // add additional test code here
- }
-
- /**
- * Run the void setOnapName(String) method test.
- *
- * @throws Exception
- *
- * @generatedBy CodePro at 6/1/16 1:41 PM
- */
- @Test
- public void testSetOnapName_1()
- throws Exception {
- PolicyParameters fixture = new PolicyParameters();
- fixture.setRequestID(UUID.randomUUID());
- fixture.setActionAttribute("");
- fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
- fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
- fixture.setPolicyDescription("");
-
- fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
- fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
- fixture.setPolicyName("");
- fixture.setConfigName("");
- fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
- fixture.setPolicyClass(PolicyClass.Action);
- fixture.setOnapName("");
- fixture.setConfigBodyType(PolicyType.JSON);
- fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
- fixture.setPriority("");
- fixture.setActionPerformer("");
- fixture.setConfigBody("");
- String onapName = "";
-
- fixture.setOnapName(onapName);
-
- // add additional test code here
- }
-
- /**
- * Run the void setPolicyClass(PolicyClass) method test.
- *
- * @throws Exception
- *
- * @generatedBy CodePro at 6/1/16 1:41 PM
- */
- @Test
- public void testSetPolicyClass_1()
- throws Exception {
- PolicyParameters fixture = new PolicyParameters();
- fixture.setRequestID(UUID.randomUUID());
- fixture.setActionAttribute("");
- fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
- fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
- fixture.setPolicyDescription("");
-
- fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
- fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
- fixture.setPolicyName("");
- fixture.setConfigName("");
- fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
- fixture.setPolicyClass(PolicyClass.Action);
- fixture.setOnapName("");
- fixture.setConfigBodyType(PolicyType.JSON);
- fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
- fixture.setPriority("");
- fixture.setActionPerformer("");
- fixture.setConfigBody("");
- PolicyClass policyClass = PolicyClass.Action;
-
- fixture.setPolicyClass(policyClass);
-
- // add additional test code here
- }
-
- /**
- * Run the void setPolicyConfigType(PolicyConfigType) method test.
- *
- * @throws Exception
- *
- * @generatedBy CodePro at 6/1/16 1:41 PM
- */
- @Test
- public void testSetPolicyConfigType_1()
- throws Exception {
- PolicyParameters fixture = new PolicyParameters();
- fixture.setRequestID(UUID.randomUUID());
- fixture.setActionAttribute("");
- fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
- fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
- fixture.setPolicyDescription("");
-
- fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
- fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
- fixture.setPolicyName("");
- fixture.setConfigName("");
- fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
- fixture.setPolicyClass(PolicyClass.Action);
- fixture.setOnapName("");
- fixture.setConfigBodyType(PolicyType.JSON);
- fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
- fixture.setPriority("");
- fixture.setActionPerformer("");
- fixture.setConfigBody("");
- PolicyConfigType policyConfigType = PolicyConfigType.BRMS_PARAM;
-
- fixture.setPolicyConfigType(policyConfigType);
-
- // add additional test code here
- }
-
- /**
- * Run the void setPolicyDescription(String) method test.
- *
- * @throws Exception
- *
- * @generatedBy CodePro at 6/1/16 1:41 PM
- */
- @Test
- public void testSetPolicyDescription_1()
- throws Exception {
- PolicyParameters fixture = new PolicyParameters();
- fixture.setRequestID(UUID.randomUUID());
- fixture.setActionAttribute("");
- fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
- fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
- fixture.setPolicyDescription("");
-
- fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
- fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
- fixture.setPolicyName("");
- fixture.setConfigName("");
- fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
- fixture.setPolicyClass(PolicyClass.Action);
- fixture.setOnapName("");
- fixture.setConfigBodyType(PolicyType.JSON);
- fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
- fixture.setPriority("");
- fixture.setActionPerformer("");
- fixture.setConfigBody("");
- String policyDescription = "";
-
- fixture.setPolicyDescription(policyDescription);
-
- // add additional test code here
- }
-
- /**
- * Run the void setPolicyName(String) method test.
- *
- * @throws Exception
- *
- * @generatedBy CodePro at 6/1/16 1:41 PM
- */
- @Test
- public void testSetPolicyName_1()
- throws Exception {
- PolicyParameters fixture = new PolicyParameters();
- fixture.setRequestID(UUID.randomUUID());
- fixture.setActionAttribute("");
- fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
- fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
- fixture.setPolicyDescription("");
-
- fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
- fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
- fixture.setPolicyName("");
- fixture.setConfigName("");
- fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
- fixture.setPolicyClass(PolicyClass.Action);
- fixture.setOnapName("");
- fixture.setConfigBodyType(PolicyType.JSON);
- fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
- fixture.setPriority("");
- fixture.setActionPerformer("");
- fixture.setConfigBody("");
- String policyName = "";
-
- fixture.setPolicyName(policyName);
-
- // add additional test code here
- }
-
- /**
- * Run the void setPriority(String) method test.
- *
- * @throws Exception
- *
- * @generatedBy CodePro at 6/1/16 1:41 PM
- */
- @Test
- public void testSetPriority_1()
- throws Exception {
- PolicyParameters fixture = new PolicyParameters();
- fixture.setRequestID(UUID.randomUUID());
- fixture.setActionAttribute("");
- fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
- fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
- fixture.setPolicyDescription("");
-
- fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
- fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
- fixture.setPolicyName("");
- fixture.setConfigName("");
- fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
- fixture.setPolicyClass(PolicyClass.Action);
- fixture.setOnapName("");
- fixture.setConfigBodyType(PolicyType.JSON);
- fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
- fixture.setPriority("");
- fixture.setActionPerformer("");
- fixture.setConfigBody("");
- String priority = "";
-
- fixture.setPriority(priority);
-
- // add additional test code here
- }
-
- /**
- * Run the void setRequestID(UUID) method test.
- *
- * @throws Exception
- *
- * @generatedBy CodePro at 6/1/16 1:41 PM
- */
- @Test
- public void testSetRequestID_1()
- throws Exception {
- PolicyParameters fixture = new PolicyParameters();
- fixture.setRequestID(UUID.randomUUID());
- fixture.setActionAttribute("");
- fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
- fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
- fixture.setPolicyDescription("");
-
- fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
- fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
- fixture.setPolicyName("");
- fixture.setConfigName("");
- fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
- fixture.setPolicyClass(PolicyClass.Action);
- fixture.setOnapName("");
- fixture.setConfigBodyType(PolicyType.JSON);
- fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
- fixture.setPriority("");
- fixture.setActionPerformer("");
- fixture.setConfigBody("");
- UUID requestID = UUID.randomUUID();
-
- fixture.setRequestID(requestID);
-
- // add additional test code here
- }
-
- /**
- * Perform pre-test initialization.
- *
- * @throws Exception
- * if the initialization fails for some reason
- *
- * @generatedBy CodePro at 6/1/16 1:41 PM
- */
- @Before
- public void setUp()
- throws Exception {
- // add additional set up code here
- }
-
- /**
- * Perform post-test clean-up.
- *
- * @throws Exception
- * if the clean-up fails for some reason
- *
- * @generatedBy CodePro at 6/1/16 1:41 PM
- */
- @After
- public void tearDown()
- throws Exception {
- // Add additional tear down code here
- }
-
- /**
- * Launch the test.
- *
- * @param args the command line arguments
- *
- * @generatedBy CodePro at 6/1/16 1:41 PM
- */
- public static void main(String[] args) {
- new org.junit.runner.JUnitCore().run(PolicyParametersTest.class);
- }
+
+ @Test
+ public void testEverythingElse() {
+ PolicyParameters params = new PolicyParameters();
+ params.setRuleProvider(null);
+ assertNull(params.getRuleProvider());
+ params.setGuard(false);
+ assertFalse(params.getGuard());
+ params.setRiskLevel("level");
+ assertEquals("level", params.getRiskLevel());
+ params.setRiskType("type");
+ assertEquals("type", params.getRiskType());
+ params.setTtlDate(new Date());
+ assertNotNull(params.getTtlDate());
+ params.setControllerName(null);
+ assertNull(params.getControllerName());
+ params.setDependencyNames(Collections.emptyList());
+ params.setExtendedOption(null);
+ assertNull(params.getExtendedOption());
+ params.setTreatments(Collections.emptyMap());
+ assertTrue(params.getTreatments().size() == 0);
+ assertNotNull(params.toString());
+ }
+
+ /**
+ * Run the String getActionAttribute() method test.
+ *
+ * @throws Exception
+ *
+ * @generatedBy CodePro at 6/1/16 1:41 PM
+ */
+ @Test
+ public void testGetActionAttribute_1()
+ throws Exception {
+ PolicyParameters fixture = new PolicyParameters();
+ fixture.setRequestID(UUID.randomUUID());
+ fixture.setActionAttribute("");
+ fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
+ fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
+ fixture.setPolicyDescription("");
+ fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
+ fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
+ fixture.setPolicyName("");
+ fixture.setConfigName("");
+ fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
+ fixture.setPolicyClass(PolicyClass.Action);
+ fixture.setOnapName("");
+ fixture.setConfigBodyType(PolicyType.JSON);
+ fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
+ fixture.setPriority("");
+ fixture.setActionPerformer("");
+ fixture.setConfigBody("");
+
+ String result = fixture.getActionAttribute();
+
+ // add additional test code here
+ assertEquals("", result);
+ }
+
+ /**
+ * Run the String getActionPerformer() method test.
+ *
+ * @throws Exception
+ *
+ * @generatedBy CodePro at 6/1/16 1:41 PM
+ */
+ @Test
+ public void testGetActionPerformer_1()
+ throws Exception {
+ PolicyParameters fixture = new PolicyParameters();
+ fixture.setRequestID(UUID.randomUUID());
+ fixture.setActionAttribute("");
+ fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
+ fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
+ fixture.setPolicyDescription("");
+ fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
+ fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
+ fixture.setPolicyName("");
+ fixture.setConfigName("");
+ fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
+ fixture.setPolicyClass(PolicyClass.Action);
+ fixture.setOnapName("");
+ fixture.setConfigBodyType(PolicyType.JSON);
+ fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
+ fixture.setPriority("");
+ fixture.setActionPerformer("");
+ fixture.setConfigBody("");
+
+ String result = fixture.getActionPerformer();
+
+ // add additional test code here
+ assertEquals("", result);
+ }
+
+ /**
+ * Run the Map<AttributeType, Map<String, String>> getAttributes() method test.
+ *
+ * @throws Exception
+ *
+ * @generatedBy CodePro at 6/1/16 1:41 PM
+ */
+ @Test
+ public void testGetAttributes_1()
+ throws Exception {
+ PolicyParameters fixture = new PolicyParameters();
+ fixture.setRequestID(UUID.randomUUID());
+ fixture.setActionAttribute("");
+ fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
+ fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
+ fixture.setPolicyDescription("");
+
+ fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
+ fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
+ fixture.setPolicyName("");
+ fixture.setConfigName("");
+ fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
+ fixture.setPolicyClass(PolicyClass.Action);
+ fixture.setOnapName("");
+ fixture.setConfigBodyType(PolicyType.JSON);
+ fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
+ fixture.setPriority("");
+ fixture.setActionPerformer("");
+ fixture.setConfigBody("");
+
+ Map<AttributeType, Map<String, String>> result = fixture.getAttributes();
+
+ // add additional test code here
+ assertNotNull(result);
+ assertEquals(0, result.size());
+ }
+
+ /**
+ * Run the String getConfigBody() method test.
+ *
+ * @throws Exception
+ *
+ * @generatedBy CodePro at 6/1/16 1:41 PM
+ */
+ @Test
+ public void testGetConfigBody_1()
+ throws Exception {
+ PolicyParameters fixture = new PolicyParameters();
+ fixture.setRequestID(UUID.randomUUID());
+ fixture.setActionAttribute("");
+ fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
+ fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
+ fixture.setPolicyDescription("");
+
+ fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
+ fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
+ fixture.setPolicyName("");
+ fixture.setConfigName("");
+ fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
+ fixture.setPolicyClass(PolicyClass.Action);
+ fixture.setOnapName("");
+ fixture.setConfigBodyType(PolicyType.JSON);
+ fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
+ fixture.setPriority("");
+ fixture.setActionPerformer("");
+ fixture.setConfigBody("");
+
+ String result = fixture.getConfigBody();
+
+ // add additional test code here
+ assertEquals("", result);
+ }
+
+ /**
+ * Run the PolicyType getConfigBodyType() method test.
+ *
+ * @throws Exception
+ *
+ * @generatedBy CodePro at 6/1/16 1:41 PM
+ */
+ @Test
+ public void testGetConfigBodyType_1()
+ throws Exception {
+ PolicyParameters fixture = new PolicyParameters();
+ fixture.setRequestID(UUID.randomUUID());
+ fixture.setActionAttribute("");
+ fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
+ fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
+ fixture.setPolicyDescription("");
+
+ fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
+ fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
+ fixture.setPolicyName("");
+ fixture.setConfigName("");
+ fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
+ fixture.setPolicyClass(PolicyClass.Action);
+ fixture.setOnapName("");
+ fixture.setConfigBodyType(PolicyType.JSON);
+ fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
+ fixture.setPriority("");
+ fixture.setActionPerformer("");
+ fixture.setConfigBody("");
+
+ PolicyType result = fixture.getConfigBodyType();
+
+ // add additional test code here
+ assertNotNull(result);
+ assertEquals("json", result.toString());
+ assertEquals("JSON", result.name());
+ assertEquals(1, result.ordinal());
+ }
+
+ /**
+ * Run the String getConfigName() method test.
+ *
+ * @throws Exception
+ *
+ * @generatedBy CodePro at 6/1/16 1:41 PM
+ */
+ @Test
+ public void testGetConfigName_1()
+ throws Exception {
+ PolicyParameters fixture = new PolicyParameters();
+ fixture.setRequestID(UUID.randomUUID());
+ fixture.setActionAttribute("");
+ fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
+ fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
+ fixture.setPolicyDescription("");
+
+ fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
+ fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
+ fixture.setPolicyName("");
+ fixture.setConfigName("");
+ fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
+ fixture.setPolicyClass(PolicyClass.Action);
+ fixture.setOnapName("");
+ fixture.setConfigBodyType(PolicyType.JSON);
+ fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
+ fixture.setPriority("");
+ fixture.setActionPerformer("");
+ fixture.setConfigBody("");
+
+ String result = fixture.getConfigName();
+
+ // add additional test code here
+ assertEquals("", result);
+ }
+
+ /**
+ * Run the List<String> getDynamicRuleAlgorithmField1() method test.
+ *
+ * @throws Exception
+ *
+ * @generatedBy CodePro at 6/1/16 1:41 PM
+ */
+ @Test
+ public void testGetDynamicRuleAlgorithmField1_1()
+ throws Exception {
+ PolicyParameters fixture = new PolicyParameters();
+ fixture.setRequestID(UUID.randomUUID());
+ fixture.setActionAttribute("");
+ fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
+ fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
+ fixture.setPolicyDescription("");
+
+ fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
+ fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
+ fixture.setPolicyName("");
+ fixture.setConfigName("");
+ fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
+ fixture.setPolicyClass(PolicyClass.Action);
+ fixture.setOnapName("");
+ fixture.setConfigBodyType(PolicyType.JSON);
+ fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
+ fixture.setPriority("");
+ fixture.setActionPerformer("");
+ fixture.setConfigBody("");
+
+ List<String> result = fixture.getDynamicRuleAlgorithmField1();
+
+ // add additional test code here
+ assertNotNull(result);
+ assertEquals(0, result.size());
+ }
+
+ /**
+ * Run the List<String> getDynamicRuleAlgorithmField2() method test.
+ *
+ * @throws Exception
+ *
+ * @generatedBy CodePro at 6/1/16 1:41 PM
+ */
+ @Test
+ public void testGetDynamicRuleAlgorithmField2_1()
+ throws Exception {
+ PolicyParameters fixture = new PolicyParameters();
+ fixture.setRequestID(UUID.randomUUID());
+ fixture.setActionAttribute("");
+ fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
+ fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
+ fixture.setPolicyDescription("");
+
+ fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
+ fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
+ fixture.setPolicyName("");
+ fixture.setConfigName("");
+ fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
+ fixture.setPolicyClass(PolicyClass.Action);
+ fixture.setOnapName("");
+ fixture.setConfigBodyType(PolicyType.JSON);
+ fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
+ fixture.setPriority("");
+ fixture.setActionPerformer("");
+ fixture.setConfigBody("");
+
+ List<String> result = fixture.getDynamicRuleAlgorithmField2();
+
+ // add additional test code here
+ assertNotNull(result);
+ assertEquals(0, result.size());
+ }
+
+ /**
+ * Run the List<String> getDynamicRuleAlgorithmFunctions() method test.
+ *
+ * @throws Exception
+ *
+ * @generatedBy CodePro at 6/1/16 1:41 PM
+ */
+ @Test
+ public void testGetDynamicRuleAlgorithmFunctions_1()
+ throws Exception {
+ PolicyParameters fixture = new PolicyParameters();
+ fixture.setRequestID(UUID.randomUUID());
+ fixture.setActionAttribute("");
+ fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
+ fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
+ fixture.setPolicyDescription("");
+
+ fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
+ fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
+ fixture.setPolicyName("");
+ fixture.setConfigName("");
+ fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
+ fixture.setPolicyClass(PolicyClass.Action);
+ fixture.setOnapName("");
+ fixture.setConfigBodyType(PolicyType.JSON);
+ fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
+ fixture.setPriority("");
+ fixture.setActionPerformer("");
+ fixture.setConfigBody("");
+
+ List<String> result = fixture.getDynamicRuleAlgorithmFunctions();
+
+ // add additional test code here
+ assertNotNull(result);
+ assertEquals(0, result.size());
+ }
+
+ /**
+ * Run the List<String> getDynamicRuleAlgorithmLabels() method test.
+ *
+ * @throws Exception
+ *
+ * @generatedBy CodePro at 6/1/16 1:41 PM
+ */
+ @Test
+ public void testGetDynamicRuleAlgorithmLabels_1()
+ throws Exception {
+ PolicyParameters fixture = new PolicyParameters();
+ fixture.setRequestID(UUID.randomUUID());
+ fixture.setActionAttribute("");
+ fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
+ fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
+ fixture.setPolicyDescription("");
+
+ fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
+ fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
+ fixture.setPolicyName("");
+ fixture.setConfigName("");
+ fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
+ fixture.setPolicyClass(PolicyClass.Action);
+ fixture.setOnapName("");
+ fixture.setConfigBodyType(PolicyType.JSON);
+ fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
+ fixture.setPriority("");
+ fixture.setActionPerformer("");
+ fixture.setConfigBody("");
+
+ List<String> result = fixture.getDynamicRuleAlgorithmLabels();
+
+ // add additional test code here
+ assertNotNull(result);
+ assertEquals(0, result.size());
+ }
+
+ /**
+ * Run the String getOnapName() method test.
+ *
+ * @throws Exception
+ *
+ * @generatedBy CodePro at 6/1/16 1:41 PM
+ */
+ @Test
+ public void testGetOnapName_1()
+ throws Exception {
+ PolicyParameters fixture = new PolicyParameters();
+ fixture.setRequestID(UUID.randomUUID());
+ fixture.setActionAttribute("");
+ fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
+ fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
+ fixture.setPolicyDescription("");
+
+ fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
+ fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
+ fixture.setPolicyName("");
+ fixture.setConfigName("");
+ fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
+ fixture.setPolicyClass(PolicyClass.Action);
+ fixture.setOnapName("");
+ fixture.setConfigBodyType(PolicyType.JSON);
+ fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
+ fixture.setPriority("");
+ fixture.setActionPerformer("");
+ fixture.setConfigBody("");
+
+ String result = fixture.getOnapName();
+
+ // add additional test code here
+ assertEquals("", result);
+ }
+
+ /**
+ * Run the PolicyClass getPolicyClass() method test.
+ *
+ * @throws Exception
+ *
+ * @generatedBy CodePro at 6/1/16 1:41 PM
+ */
+ @Test
+ public void testGetPolicyClass_1()
+ throws Exception {
+ PolicyParameters fixture = new PolicyParameters();
+ fixture.setRequestID(UUID.randomUUID());
+ fixture.setActionAttribute("");
+ fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
+ fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
+ fixture.setPolicyDescription("");
+
+ fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
+ fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
+ fixture.setPolicyName("");
+ fixture.setConfigName("");
+ fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
+ fixture.setPolicyClass(PolicyClass.Action);
+ fixture.setOnapName("");
+ fixture.setConfigBodyType(PolicyType.JSON);
+ fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
+ fixture.setPriority("");
+ fixture.setActionPerformer("");
+ fixture.setConfigBody("");
+
+ PolicyClass result = fixture.getPolicyClass();
+
+ // add additional test code here
+ assertNotNull(result);
+ assertEquals("Action", result.toString());
+ assertEquals("Action", result.name());
+ assertEquals(1, result.ordinal());
+ }
+
+ /**
+ * Run the PolicyConfigType getPolicyConfigType() method test.
+ *
+ * @throws Exception
+ *
+ * @generatedBy CodePro at 6/1/16 1:41 PM
+ */
+ @Test
+ public void testGetPolicyConfigType_1()
+ throws Exception {
+ PolicyParameters fixture = new PolicyParameters();
+ fixture.setRequestID(UUID.randomUUID());
+ fixture.setActionAttribute("");
+ fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
+ fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
+ fixture.setPolicyDescription("");
+
+ fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
+ fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
+ fixture.setPolicyName("");
+ fixture.setConfigName("");
+ fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
+ fixture.setPolicyClass(PolicyClass.Action);
+ fixture.setOnapName("");
+ fixture.setConfigBodyType(PolicyType.JSON);
+ fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
+ fixture.setPriority("");
+ fixture.setActionPerformer("");
+ fixture.setConfigBody("");
+
+ PolicyConfigType result = (PolicyConfigType) fixture.getPolicyConfigType();
+
+ // add additional test code here
+ assertNotNull(result);
+ assertEquals("BRMS_Param", result.toString());
+ assertEquals("BRMS_PARAM", result.name());
+ assertEquals(5, result.ordinal());
+ }
+
+ /**
+ * Run the String getPolicyDescription() method test.
+ *
+ * @throws Exception
+ *
+ * @generatedBy CodePro at 6/1/16 1:41 PM
+ */
+ @Test
+ public void testGetPolicyDescription_1()
+ throws Exception {
+ PolicyParameters fixture = new PolicyParameters();
+ fixture.setRequestID(UUID.randomUUID());
+ fixture.setActionAttribute("");
+ fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
+ fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
+ fixture.setPolicyDescription("");
+
+ fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
+ fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
+ fixture.setPolicyName("");
+ fixture.setConfigName("");
+ fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
+ fixture.setPolicyClass(PolicyClass.Action);
+ fixture.setOnapName("");
+ fixture.setConfigBodyType(PolicyType.JSON);
+ fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
+ fixture.setPriority("");
+ fixture.setActionPerformer("");
+ fixture.setConfigBody("");
+
+ String result = fixture.getPolicyDescription();
+
+ // add additional test code here
+ assertEquals("", result);
+ }
+
+ /**
+ * Run the String getPolicyName() method test.
+ *
+ * @throws Exception
+ *
+ * @generatedBy CodePro at 6/1/16 1:41 PM
+ */
+ @Test
+ public void testGetPolicyName_1()
+ throws Exception {
+ PolicyParameters fixture = new PolicyParameters();
+ fixture.setRequestID(UUID.randomUUID());
+ fixture.setActionAttribute("");
+ fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
+ fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
+ fixture.setPolicyDescription("");
+
+ fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
+ fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
+ fixture.setPolicyName("");
+ fixture.setConfigName("");
+ fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
+ fixture.setPolicyClass(PolicyClass.Action);
+ fixture.setOnapName("");
+ fixture.setConfigBodyType(PolicyType.JSON);
+ fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
+ fixture.setPriority("");
+ fixture.setActionPerformer("");
+ fixture.setConfigBody("");
+
+ String result = fixture.getPolicyName();
+
+ // add additional test code here
+ assertEquals("", result);
+ }
+
+ /**
+ * Run the String getPriority() method test.
+ *
+ * @throws Exception
+ *
+ * @generatedBy CodePro at 6/1/16 1:41 PM
+ */
+ @Test
+ public void testGetPriority_1()
+ throws Exception {
+ PolicyParameters fixture = new PolicyParameters();
+ fixture.setRequestID(UUID.randomUUID());
+ fixture.setActionAttribute("");
+ fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
+ fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
+ fixture.setPolicyDescription("");
+
+ fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
+ fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
+ fixture.setPolicyName("");
+ fixture.setConfigName("");
+ fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
+ fixture.setPolicyClass(PolicyClass.Action);
+ fixture.setOnapName("");
+ fixture.setConfigBodyType(PolicyType.JSON);
+ fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
+ fixture.setPriority("");
+ fixture.setActionPerformer("");
+ fixture.setConfigBody("");
+
+ String result = fixture.getPriority();
+
+ // add additional test code here
+ assertEquals("", result);
+ }
+
+ /**
+ * Run the UUID getRequestID() method test.
+ *
+ * @throws Exception
+ *
+ * @generatedBy CodePro at 6/1/16 1:41 PM
+ */
+ @Test
+ public void testGetRequestID_1()
+ throws Exception {
+ PolicyParameters fixture = new PolicyParameters();
+ fixture.setRequestID(UUID.fromString("878d319c-2799-4684-b480-99f40e1042b2"));
+ fixture.setActionAttribute("");
+ fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
+ fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
+ fixture.setPolicyDescription("");
+
+ fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
+ fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
+ fixture.setPolicyName("");
+ fixture.setConfigName("");
+ fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
+ fixture.setPolicyClass(PolicyClass.Action);
+ fixture.setOnapName("");
+ fixture.setConfigBodyType(PolicyType.JSON);
+ fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
+ fixture.setPriority("");
+ fixture.setActionPerformer("");
+ fixture.setConfigBody("");
+
+ UUID result = fixture.getRequestID();
+
+ // add additional test code here
+ assertNotNull(result);
+ assertEquals("878d319c-2799-4684-b480-99f40e1042b2", result.toString());
+ assertEquals(4, result.version());
+ assertEquals(2, result.variant());
+ assertEquals(-5440179076376542542L, result.getLeastSignificantBits());
+ assertEquals(-8679226360124062076L, result.getMostSignificantBits());
+ }
+
+ /**
+ * Run the void setActionAttribute(String) method test.
+ *
+ * @throws Exception
+ *
+ * @generatedBy CodePro at 6/1/16 1:41 PM
+ */
+ @Test
+ public void testSetActionAttribute_1()
+ throws Exception {
+ PolicyParameters fixture = new PolicyParameters();
+ fixture.setRequestID(UUID.randomUUID());
+ fixture.setActionAttribute("");
+ fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
+ fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
+ fixture.setPolicyDescription("");
+
+ fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
+ fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
+ fixture.setPolicyName("");
+ fixture.setConfigName("");
+ fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
+ fixture.setPolicyClass(PolicyClass.Action);
+ fixture.setOnapName("");
+ fixture.setConfigBodyType(PolicyType.JSON);
+ fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
+ fixture.setPriority("");
+ fixture.setActionPerformer("");
+ fixture.setConfigBody("");
+ String actionAttribute = "";
+
+ fixture.setActionAttribute(actionAttribute);
+
+ // add additional test code here
+ }
+
+ /**
+ * Run the void setActionPerformer(String) method test.
+ *
+ * @throws Exception
+ *
+ * @generatedBy CodePro at 6/1/16 1:41 PM
+ */
+ @Test
+ public void testSetActionPerformer_1()
+ throws Exception {
+ PolicyParameters fixture = new PolicyParameters();
+ fixture.setRequestID(UUID.randomUUID());
+ fixture.setActionAttribute("");
+ fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
+ fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
+ fixture.setPolicyDescription("");
+
+ fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
+ fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
+ fixture.setPolicyName("");
+ fixture.setConfigName("");
+ fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
+ fixture.setPolicyClass(PolicyClass.Action);
+ fixture.setOnapName("");
+ fixture.setConfigBodyType(PolicyType.JSON);
+ fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
+ fixture.setPriority("");
+ fixture.setActionPerformer("");
+ fixture.setConfigBody("");
+ String actionPerformer = "";
+
+ fixture.setActionPerformer(actionPerformer);
+
+ // add additional test code here
+ }
+
+ /**
+ * Run the void setAttributes(Map<AttributeType,Map<String,String>>) method test.
+ *
+ * @throws Exception
+ *
+ * @generatedBy CodePro at 6/1/16 1:41 PM
+ */
+ @Test
+ public void testSetAttributes_1()
+ throws Exception {
+ PolicyParameters fixture = new PolicyParameters();
+ fixture.setRequestID(UUID.randomUUID());
+ fixture.setActionAttribute("");
+ fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
+ fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
+ fixture.setPolicyDescription("");
+
+ fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
+ fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
+ fixture.setPolicyName("");
+ fixture.setConfigName("");
+ fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
+ fixture.setPolicyClass(PolicyClass.Action);
+ fixture.setOnapName("");
+ fixture.setConfigBodyType(PolicyType.JSON);
+ fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
+ fixture.setPriority("");
+ fixture.setActionPerformer("");
+ fixture.setConfigBody("");
+ Map<AttributeType, Map<String, String>> attributes = new Hashtable<AttributeType, Map<String, String>>();
+
+ fixture.setAttributes(attributes);
+
+ // add additional test code here
+ }
+
+ /**
+ * Run the void setConfigBody(String) method test.
+ *
+ * @throws Exception
+ *
+ * @generatedBy CodePro at 6/1/16 1:41 PM
+ */
+ @Test
+ public void testSetConfigBody_1()
+ throws Exception {
+ PolicyParameters fixture = new PolicyParameters();
+ fixture.setRequestID(UUID.randomUUID());
+ fixture.setActionAttribute("");
+ fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
+ fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
+ fixture.setPolicyDescription("");
+
+ fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
+ fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
+ fixture.setPolicyName("");
+ fixture.setConfigName("");
+ fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
+ fixture.setPolicyClass(PolicyClass.Action);
+ fixture.setOnapName("");
+ fixture.setConfigBodyType(PolicyType.JSON);
+ fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
+ fixture.setPriority("");
+ fixture.setActionPerformer("");
+ fixture.setConfigBody("");
+ String configBody = "";
+
+ fixture.setConfigBody(configBody);
+
+ // add additional test code here
+ }
+
+ /**
+ * Run the void setConfigBodyType(PolicyType) method test.
+ *
+ * @throws Exception
+ *
+ * @generatedBy CodePro at 6/1/16 1:41 PM
+ */
+ @Test
+ public void testSetConfigBodyType_1()
+ throws Exception {
+ PolicyParameters fixture = new PolicyParameters();
+ fixture.setRequestID(UUID.randomUUID());
+ fixture.setActionAttribute("");
+ fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
+ fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
+ fixture.setPolicyDescription("");
+
+ fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
+ fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
+ fixture.setPolicyName("");
+ fixture.setConfigName("");
+ fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
+ fixture.setPolicyClass(PolicyClass.Action);
+ fixture.setOnapName("");
+ fixture.setConfigBodyType(PolicyType.JSON);
+ fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
+ fixture.setPriority("");
+ fixture.setActionPerformer("");
+ fixture.setConfigBody("");
+ PolicyType configBodyType = PolicyType.JSON;
+
+ fixture.setConfigBodyType(configBodyType);
+
+ // add additional test code here
+ }
+
+ /**
+ * Run the void setConfigFirewallPolicyParameters(String,String,UUID) method test.
+ *
+ * @throws Exception
+ *
+ * @generatedBy CodePro at 6/1/16 1:41 PM
+ */
+ @Test
+ public void testSetConfigFirewallPolicyParameters_1()
+ throws Exception {
+ PolicyParameters fixture = new PolicyParameters();
+ fixture.setRequestID(UUID.randomUUID());
+ fixture.setActionAttribute("");
+ fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
+ fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
+ fixture.setPolicyDescription("");
+
+ fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
+ fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
+ fixture.setPolicyName("");
+ fixture.setConfigName("");
+ fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
+ fixture.setPolicyClass(PolicyClass.Action);
+ fixture.setOnapName("");
+ fixture.setConfigBodyType(PolicyType.JSON);
+ fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
+ fixture.setPriority("");
+ fixture.setActionPerformer("");
+ fixture.setConfigBody("");
+ String policyName = "";
+ String firewallJson = "";
+ UUID requestID = UUID.randomUUID();
+
+ fixture.setConfigFirewallPolicyParameters(policyName, firewallJson, requestID);
+
+ // add additional test code here
+ }
+
+ /**
+ * Run the void setConfigName(String) method test.
+ *
+ * @throws Exception
+ *
+ * @generatedBy CodePro at 6/1/16 1:41 PM
+ */
+ @Test
+ public void testSetConfigName_1()
+ throws Exception {
+ PolicyParameters fixture = new PolicyParameters();
+ fixture.setRequestID(UUID.randomUUID());
+ fixture.setActionAttribute("");
+ fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
+ fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
+ fixture.setPolicyDescription("");
+
+ fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
+ fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
+ fixture.setPolicyName("");
+ fixture.setConfigName("");
+ fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
+ fixture.setPolicyClass(PolicyClass.Action);
+ fixture.setOnapName("");
+ fixture.setConfigBodyType(PolicyType.JSON);
+ fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
+ fixture.setPriority("");
+ fixture.setActionPerformer("");
+ fixture.setConfigBody("");
+ String configName = "";
+
+ fixture.setConfigName(configName);
+
+ // add additional test code here
+ }
+
+ /**
+ * Run the void setConfigPolicyParameters(PolicyConfigType,String,String,String,String,Map<AttributeType,Map<String,String>>,PolicyType,String,UUID) method test.
+ *
+ * @throws Exception
+ *
+ * @generatedBy CodePro at 6/1/16 1:41 PM
+ */
+ @Test
+ public void testSetConfigPolicyParameters_1()
+ throws Exception {
+ PolicyParameters fixture = new PolicyParameters();
+ fixture.setRequestID(UUID.randomUUID());
+ fixture.setActionAttribute("");
+ fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
+ fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
+ fixture.setPolicyDescription("");
+
+ fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
+ fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
+ fixture.setPolicyName("");
+ fixture.setConfigName("");
+ fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
+ fixture.setPolicyClass(PolicyClass.Action);
+ fixture.setOnapName("");
+ fixture.setConfigBodyType(PolicyType.JSON);
+ fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
+ fixture.setPriority("");
+ fixture.setActionPerformer("");
+ fixture.setConfigBody("");
+ PolicyConfigType policyConfigType = PolicyConfigType.BRMS_PARAM;
+ String policyName = "";
+ String policyDescription = "";
+ String onapName = "";
+ String configName = "";
+ Map<AttributeType, Map<String, String>> attributes = new Hashtable<AttributeType, Map<String, String>>();
+ PolicyType configBodyType = PolicyType.JSON;
+ String configBody = "";
+ UUID requestID = UUID.randomUUID();
+
+ fixture.setConfigPolicyParameters(PolicyConfigParams.builder()
+ .policyConfigType(policyConfigType)
+ .policyName(policyName)
+ .policyDescription(policyDescription)
+ .onapName(onapName)
+ .configName(configName)
+ .attributes(attributes)
+ .configBodyType(configBodyType)
+ .configBody(configBody)
+ .requestID(requestID)
+ .build());
+
+ // add additional test code here
+ }
+
+ /**
+ * Run the void setDynamicRuleAlgorithmField1(List<String>) method test.
+ *
+ * @throws Exception
+ *
+ * @generatedBy CodePro at 6/1/16 1:41 PM
+ */
+ @Test
+ public void testSetDynamicRuleAlgorithmField1_1()
+ throws Exception {
+ PolicyParameters fixture = new PolicyParameters();
+ fixture.setRequestID(UUID.randomUUID());
+ fixture.setActionAttribute("");
+ fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
+ fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
+ fixture.setPolicyDescription("");
+
+ fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
+ fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
+ fixture.setPolicyName("");
+ fixture.setConfigName("");
+ fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
+ fixture.setPolicyClass(PolicyClass.Action);
+ fixture.setOnapName("");
+ fixture.setConfigBodyType(PolicyType.JSON);
+ fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
+ fixture.setPriority("");
+ fixture.setActionPerformer("");
+ fixture.setConfigBody("");
+ List<String> dynamicRuleAlgorithmField1 = new LinkedList<String>();
+
+ fixture.setDynamicRuleAlgorithmField1(dynamicRuleAlgorithmField1);
+
+ // add additional test code here
+ }
+
+ /**
+ * Run the void setDynamicRuleAlgorithmField2(List<String>) method test.
+ *
+ * @throws Exception
+ *
+ * @generatedBy CodePro at 6/1/16 1:41 PM
+ */
+ @Test
+ public void testSetDynamicRuleAlgorithmField2_1()
+ throws Exception {
+ PolicyParameters fixture = new PolicyParameters();
+ fixture.setRequestID(UUID.randomUUID());
+ fixture.setActionAttribute("");
+ fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
+ fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
+ fixture.setPolicyDescription("");
+
+ fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
+ fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
+ fixture.setPolicyName("");
+ fixture.setConfigName("");
+ fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
+ fixture.setPolicyClass(PolicyClass.Action);
+ fixture.setOnapName("");
+ fixture.setConfigBodyType(PolicyType.JSON);
+ fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
+ fixture.setPriority("");
+ fixture.setActionPerformer("");
+ fixture.setConfigBody("");
+ List<String> dynamicRuleAlgorithmField2 = new LinkedList<String>();
+
+ fixture.setDynamicRuleAlgorithmField2(dynamicRuleAlgorithmField2);
+
+ // add additional test code here
+ }
+
+ /**
+ * Run the void setDynamicRuleAlgorithmFunctions(List<String>) method test.
+ *
+ * @throws Exception
+ *
+ * @generatedBy CodePro at 6/1/16 1:41 PM
+ */
+ @Test
+ public void testSetDynamicRuleAlgorithmFunctions_1()
+ throws Exception {
+ PolicyParameters fixture = new PolicyParameters();
+ fixture.setRequestID(UUID.randomUUID());
+ fixture.setActionAttribute("");
+ fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
+ fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
+ fixture.setPolicyDescription("");
+
+ fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
+ fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
+ fixture.setPolicyName("");
+ fixture.setConfigName("");
+ fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
+ fixture.setPolicyClass(PolicyClass.Action);
+ fixture.setOnapName("");
+ fixture.setConfigBodyType(PolicyType.JSON);
+ fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
+ fixture.setPriority("");
+ fixture.setActionPerformer("");
+ fixture.setConfigBody("");
+ List<String> dynamicRuleAlgorithmFunctions = new LinkedList<String>();
+
+ fixture.setDynamicRuleAlgorithmFunctions(dynamicRuleAlgorithmFunctions);
+
+ // add additional test code here
+ }
+
+ /**
+ * Run the void setDynamicRuleAlgorithmLabels(List<String>) method test.
+ *
+ * @throws Exception
+ *
+ * @generatedBy CodePro at 6/1/16 1:41 PM
+ */
+ @Test
+ public void testSetDynamicRuleAlgorithmLabels_1()
+ throws Exception {
+ PolicyParameters fixture = new PolicyParameters();
+ fixture.setRequestID(UUID.randomUUID());
+ fixture.setActionAttribute("");
+ fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
+ fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
+ fixture.setPolicyDescription("");
+
+ fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
+ fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
+ fixture.setPolicyName("");
+ fixture.setConfigName("");
+ fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
+ fixture.setPolicyClass(PolicyClass.Action);
+ fixture.setOnapName("");
+ fixture.setConfigBodyType(PolicyType.JSON);
+ fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
+ fixture.setPriority("");
+ fixture.setActionPerformer("");
+ fixture.setConfigBody("");
+ List<String> dynamicRuleAlgorithmLabels = new LinkedList<String>();
+
+ fixture.setDynamicRuleAlgorithmLabels(dynamicRuleAlgorithmLabels);
+
+ // add additional test code here
+ }
+
+ /**
+ * Run the void setOnapName(String) method test.
+ *
+ * @throws Exception
+ *
+ * @generatedBy CodePro at 6/1/16 1:41 PM
+ */
+ @Test
+ public void testSetOnapName_1()
+ throws Exception {
+ PolicyParameters fixture = new PolicyParameters();
+ fixture.setRequestID(UUID.randomUUID());
+ fixture.setActionAttribute("");
+ fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
+ fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
+ fixture.setPolicyDescription("");
+
+ fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
+ fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
+ fixture.setPolicyName("");
+ fixture.setConfigName("");
+ fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
+ fixture.setPolicyClass(PolicyClass.Action);
+ fixture.setOnapName("");
+ fixture.setConfigBodyType(PolicyType.JSON);
+ fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
+ fixture.setPriority("");
+ fixture.setActionPerformer("");
+ fixture.setConfigBody("");
+ String onapName = "";
+
+ fixture.setOnapName(onapName);
+
+ // add additional test code here
+ }
+
+ /**
+ * Run the void setPolicyClass(PolicyClass) method test.
+ *
+ * @throws Exception
+ *
+ * @generatedBy CodePro at 6/1/16 1:41 PM
+ */
+ @Test
+ public void testSetPolicyClass_1()
+ throws Exception {
+ PolicyParameters fixture = new PolicyParameters();
+ fixture.setRequestID(UUID.randomUUID());
+ fixture.setActionAttribute("");
+ fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
+ fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
+ fixture.setPolicyDescription("");
+
+ fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
+ fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
+ fixture.setPolicyName("");
+ fixture.setConfigName("");
+ fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
+ fixture.setPolicyClass(PolicyClass.Action);
+ fixture.setOnapName("");
+ fixture.setConfigBodyType(PolicyType.JSON);
+ fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
+ fixture.setPriority("");
+ fixture.setActionPerformer("");
+ fixture.setConfigBody("");
+ PolicyClass policyClass = PolicyClass.Action;
+
+ fixture.setPolicyClass(policyClass);
+
+ // add additional test code here
+ }
+
+ /**
+ * Run the void setPolicyConfigType(PolicyConfigType) method test.
+ *
+ * @throws Exception
+ *
+ * @generatedBy CodePro at 6/1/16 1:41 PM
+ */
+ @Test
+ public void testSetPolicyConfigType_1()
+ throws Exception {
+ PolicyParameters fixture = new PolicyParameters();
+ fixture.setRequestID(UUID.randomUUID());
+ fixture.setActionAttribute("");
+ fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
+ fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
+ fixture.setPolicyDescription("");
+
+ fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
+ fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
+ fixture.setPolicyName("");
+ fixture.setConfigName("");
+ fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
+ fixture.setPolicyClass(PolicyClass.Action);
+ fixture.setOnapName("");
+ fixture.setConfigBodyType(PolicyType.JSON);
+ fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
+ fixture.setPriority("");
+ fixture.setActionPerformer("");
+ fixture.setConfigBody("");
+ PolicyConfigType policyConfigType = PolicyConfigType.BRMS_PARAM;
+
+ fixture.setPolicyConfigType(policyConfigType);
+
+ // add additional test code here
+ }
+
+ /**
+ * Run the void setPolicyDescription(String) method test.
+ *
+ * @throws Exception
+ *
+ * @generatedBy CodePro at 6/1/16 1:41 PM
+ */
+ @Test
+ public void testSetPolicyDescription_1()
+ throws Exception {
+ PolicyParameters fixture = new PolicyParameters();
+ fixture.setRequestID(UUID.randomUUID());
+ fixture.setActionAttribute("");
+ fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
+ fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
+ fixture.setPolicyDescription("");
+
+ fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
+ fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
+ fixture.setPolicyName("");
+ fixture.setConfigName("");
+ fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
+ fixture.setPolicyClass(PolicyClass.Action);
+ fixture.setOnapName("");
+ fixture.setConfigBodyType(PolicyType.JSON);
+ fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
+ fixture.setPriority("");
+ fixture.setActionPerformer("");
+ fixture.setConfigBody("");
+ String policyDescription = "";
+
+ fixture.setPolicyDescription(policyDescription);
+
+ // add additional test code here
+ }
+
+ /**
+ * Run the void setPolicyName(String) method test.
+ *
+ * @throws Exception
+ *
+ * @generatedBy CodePro at 6/1/16 1:41 PM
+ */
+ @Test
+ public void testSetPolicyName_1()
+ throws Exception {
+ PolicyParameters fixture = new PolicyParameters();
+ fixture.setRequestID(UUID.randomUUID());
+ fixture.setActionAttribute("");
+ fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
+ fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
+ fixture.setPolicyDescription("");
+
+ fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
+ fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
+ fixture.setPolicyName("");
+ fixture.setConfigName("");
+ fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
+ fixture.setPolicyClass(PolicyClass.Action);
+ fixture.setOnapName("");
+ fixture.setConfigBodyType(PolicyType.JSON);
+ fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
+ fixture.setPriority("");
+ fixture.setActionPerformer("");
+ fixture.setConfigBody("");
+ String policyName = "";
+
+ fixture.setPolicyName(policyName);
+
+ // add additional test code here
+ }
+
+ /**
+ * Run the void setPriority(String) method test.
+ *
+ * @throws Exception
+ *
+ * @generatedBy CodePro at 6/1/16 1:41 PM
+ */
+ @Test
+ public void testSetPriority_1()
+ throws Exception {
+ PolicyParameters fixture = new PolicyParameters();
+ fixture.setRequestID(UUID.randomUUID());
+ fixture.setActionAttribute("");
+ fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
+ fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
+ fixture.setPolicyDescription("");
+
+ fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
+ fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
+ fixture.setPolicyName("");
+ fixture.setConfigName("");
+ fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
+ fixture.setPolicyClass(PolicyClass.Action);
+ fixture.setOnapName("");
+ fixture.setConfigBodyType(PolicyType.JSON);
+ fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
+ fixture.setPriority("");
+ fixture.setActionPerformer("");
+ fixture.setConfigBody("");
+ String priority = "";
+
+ fixture.setPriority(priority);
+
+ // add additional test code here
+ }
+
+ /**
+ * Run the void setRequestID(UUID) method test.
+ *
+ * @throws Exception
+ *
+ * @generatedBy CodePro at 6/1/16 1:41 PM
+ */
+ @Test
+ public void testSetRequestID_1()
+ throws Exception {
+ PolicyParameters fixture = new PolicyParameters();
+ fixture.setRequestID(UUID.randomUUID());
+ fixture.setActionAttribute("");
+ fixture.setAttributes(new Hashtable<AttributeType, Map<String, String>>());
+ fixture.setDynamicRuleAlgorithmLabels(new LinkedList<String>());
+ fixture.setPolicyDescription("");
+
+ fixture.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
+ fixture.setDynamicRuleAlgorithmField2(new LinkedList<String>());
+ fixture.setPolicyName("");
+ fixture.setConfigName("");
+ fixture.setDynamicRuleAlgorithmFunctions(new LinkedList<String>());
+ fixture.setPolicyClass(PolicyClass.Action);
+ fixture.setOnapName("");
+ fixture.setConfigBodyType(PolicyType.JSON);
+ fixture.setDynamicRuleAlgorithmField1(new LinkedList<String>());
+ fixture.setPriority("");
+ fixture.setActionPerformer("");
+ fixture.setConfigBody("");
+ UUID requestID = UUID.randomUUID();
+
+ fixture.setRequestID(requestID);
+
+ // add additional test code here
+ }
+
+ /**
+ * Perform pre-test initialization.
+ *
+ * @throws Exception
+ * if the initialization fails for some reason
+ *
+ * @generatedBy CodePro at 6/1/16 1:41 PM
+ */
+ @Before
+ public void setUp()
+ throws Exception {
+ // add additional set up code here
+ }
+
+ /**
+ * Perform post-test clean-up.
+ *
+ * @throws Exception
+ * if the clean-up fails for some reason
+ *
+ * @generatedBy CodePro at 6/1/16 1:41 PM
+ */
+ @After
+ public void tearDown()
+ throws Exception {
+ // Add additional tear down code here
+ }
+
+ /**
+ * Launch the test.
+ *
+ * @param args the command line arguments
+ *
+ * @generatedBy CodePro at 6/1/16 1:41 PM
+ */
+ public static void main(String[] args) {
+ new org.junit.runner.JUnitCore().run(PolicyParametersTest.class);
+ }
}