* Unpublished and Not for Publication
* All Rights Reserved
*/
-package org.openecomp.policyEngine;
+package org.onap.policyEngine;
import java.io.FileNotFoundException;
import java.io.FileReader;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
-import org.openecomp.policy.api.PolicyEngine;
-import org.openecomp.policy.api.PolicyEngineException;
-import org.openecomp.policy.common.logging.flexlogger.FlexLogger;
-import org.openecomp.policy.common.logging.flexlogger.Logger;
+import org.onap.policy.api.PolicyEngine;
+import org.onap.policy.api.PolicyEngineException;
+import org.onap.policy.common.logging.flexlogger.FlexLogger;
+import org.onap.policy.common.logging.flexlogger.Logger;
/**
* Class reads from .testCases file and run the test cases available in the file
* @param file
*/
private static void runTestClientOnConfigFile(Path file) {
- String resultReturned, eCOMPComponentName;
+ String resultReturned, onapComponentName;
int totalTCforFile = 0, passTCforFile = 0, failTCforFile = 0;
System.out
.println("\n###############################################################################################");
switch (testFor) {
case "getConfig":
- eCOMPComponentName = (String) testCase
- .get("ECOMPName");
+ onapComponentName = (String) testCase
+ .get("ONAPName");
String configName = (String) testCase
.get("ConfigName");
Map<String, String> configAttributes = new HashMap<>();
configAttributes = null;
}
resultReceived = PolicyEngineTestClient.getConfig(
- policyEngine, eCOMPComponentName,
+ policyEngine, onapComponentName,
configName, configAttributes);
Collections.sort(expectedResult);
Collections.sort(resultReceived);
break;
case "getDecision":
- eCOMPComponentName = (String) testCase
- .get("ECOMPName");
+ onapComponentName = (String) testCase
+ .get("ONAPName");
Map<String, String> decisionAttributes = new HashMap<>();
decisionAttributes.put("Key", "Value");
JSONArray decisionAttributesJSON = (JSONArray) testCase
resultReceived = PolicyEngineTestClient
.getDecision(policyEngine,
- eCOMPComponentName,
+ onapComponentName,
decisionAttributes);
Collections.sort(expectedResult);
Collections.sort(resultReceived);
// case "getManualNotification":
// PolicyEngineTestClient
- // .getManualNotifications(org.openecomp.policyEngine);
+ // .getManualNotifications(org.onap.policyEngine);
// break;
// case "getAutoNotification":
// PolicyEngineTestClient
- // .getAutoNotifications(org.openecomp.policyEngine);
+ // .getAutoNotifications(org.onap.policyEngine);
// break;
default: