APEX standalone support for ToscaPolicy format
[policy/apex-pdp.git] / examples / examples-grpc / src / test / java / org / onap / policy / apex / examples / grpc / TestApexGrpcExample.java
index 35c21d6..7f799c2 100644 (file)
@@ -1,6 +1,7 @@
 /*-
  * ============LICENSE_START=======================================================
  *  Copyright (C) 2020 Nordix Foundation.
+ *  Modifications Copyright (C) 2020 Bell Canada. 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.
@@ -30,7 +31,7 @@ import javax.ws.rs.client.Client;
 import javax.ws.rs.client.ClientBuilder;
 import javax.ws.rs.core.Response;
 import org.junit.Test;
-import org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain;
+import org.onap.policy.apex.auth.clieditor.tosca.ApexCliToscaEditorMain;
 import org.onap.policy.apex.service.engine.main.ApexMain;
 
 /**
@@ -48,20 +49,22 @@ public class TestApexGrpcExample {
             "src/main/resources/policy/APEXgRPCPolicy.apex",
             "-l",
             "target/APEXgRPCPolicyModel.log",
-            "-o",
+            "-ac",
+            "src/main/resources/examples/config/APEXgRPC/ApexConfig.json",
+            "-t",
+            "src/main/resources/tosca/ToscaTemplate.json",
+            "-ot",
             "target/classes/APEXgRPCPolicy.json"
         };
         // @formatter:on
 
-        new ApexCommandLineEditorMain(cliArgs);
+        new ApexCliToscaEditorMain(cliArgs);
 
         // @formatter:off
         final String[] apexArgs = {
             "-rfr",
             "target/classes",
-            "-c",
-            "src/main/resources/examples/config/APEXgRPC/ApexConfig.json",
-            "-m",
+            "-p",
             "target/classes/APEXgRPCPolicy.json"
         };
         // @formatter:on