diff options
author | rameshiyer27 <ramesh.murugan.iyer@est.tech> | 2024-07-17 09:12:52 +0100 |
---|---|---|
committer | rameshiyer27 <ramesh.murugan.iyer@est.tech> | 2024-09-18 09:27:05 +0100 |
commit | 683a4a788de041d390d57c5a8f71c4d83fff8820 (patch) | |
tree | 4ee82966876ac62e37cf5f83e8475370733a7060 /auth/cli-codegen | |
parent | 827a10e2abc1a0967cd215988de63c94a83d6e64 (diff) |
Apex pdp code improvements
Fix compilation issues in windows
Replace Acm policy with kafka
coverage improvements
Issue-ID: POLICY-5059
Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech>
Change-Id: Idfac722cce2d1a2fa471e8c77286006bd883e9a7
Diffstat (limited to 'auth/cli-codegen')
-rw-r--r-- | auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/CodeGeneratorCliEditorTest.java | 15 |
1 files changed, 15 insertions, 0 deletions
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. * |