aboutsummaryrefslogtreecommitdiffstats
path: root/auth/cli-codegen
diff options
context:
space:
mode:
Diffstat (limited to 'auth/cli-codegen')
-rw-r--r--auth/cli-codegen/pom.xml2
-rw-r--r--auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/CodeGeneratorCliEditorTest.java15
2 files changed, 16 insertions, 1 deletions
diff --git a/auth/cli-codegen/pom.xml b/auth/cli-codegen/pom.xml
index 020f08614..af9cb36f3 100644
--- a/auth/cli-codegen/pom.xml
+++ b/auth/cli-codegen/pom.xml
@@ -25,7 +25,7 @@
<parent>
<groupId>org.onap.policy.apex-pdp.auth</groupId>
<artifactId>auth</artifactId>
- <version>4.0.0-SNAPSHOT</version>
+ <version>4.0.1-SNAPSHOT</version>
</parent>
<artifactId>cli-codegen</artifactId>
diff --git a/auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/CodeGeneratorCliEditorTest.java b/auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/CodeGeneratorCliEditorTest.java
index 1b44f66e7..54e50b5ab 100644
--- a/auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/CodeGeneratorCliEditorTest.java
+++ b/auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/CodeGeneratorCliEditorTest.java
@@ -25,6 +25,7 @@
package org.onap.policy.apex.auth.clicodegen;
import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
import java.io.File;
import java.io.FileInputStream;
@@ -81,6 +82,20 @@ class CodeGeneratorCliEditorTest {
assertEquals(0, generateCli(codeGen, apexPolicyModel));
}
+ @Test
+ void testTaskDefFields() {
+ CodeGeneratorCliEditor editor = new CodeGeneratorCliEditor();
+ var st = editor.createTaskDefinitionInfields("InFieldTask", "1.0.0", "field1", "schema", "1.0.1");
+ assertNotNull(st);
+
+ var st2 = editor.createTaskDefinitionOutfields("OutFieldTask", "1.0.0", "field2", "schema", "1.0.1");
+ assertNotNull(st2);
+
+ var st3 = editor.createPolicyStateDefFinalizerLogic("dummy", "1.0.0", "dummyState",
+ "logicName", "flavor", "logic");
+ assertNotNull(st3);
+ }
+
/**
* Generate the CLI from the model.
*