summaryrefslogtreecommitdiffstats
path: root/auth/cli-codegen/src/test
diff options
context:
space:
mode:
authorkris.jinka <kris.jinka@samsung.com>2018-11-15 11:26:38 +0900
committerkris.jinka <kris.jinka@samsung.com>2018-11-15 11:26:55 +0900
commit5ce0ef187f67c46f11ec5e078cfa3a45ab6726c7 (patch)
tree4194d45d3f9a4c6d30004b0b36f821d698d4460e /auth/cli-codegen/src/test
parent59f9596e12ae31d74653d77fadd6b5cebfc71273 (diff)
Use param obj for contxt album decln
Modify code generator cli editor to use param object for the sonar issue fix Issue-ID: POLICY-1251 Change-Id: I3efbdbe2ce7c16702508b9f1f36ecbb9b1e12856 Signed-off-by: kris.jinka <kris.jinka@samsung.com>
Diffstat (limited to 'auth/cli-codegen/src/test')
-rw-r--r--auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/CliCodegenTest.java13
1 files changed, 10 insertions, 3 deletions
diff --git a/auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/CliCodegenTest.java b/auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/CliCodegenTest.java
index 13f0bc0e6..956e302c6 100644
--- a/auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/CliCodegenTest.java
+++ b/auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/CliCodegenTest.java
@@ -137,9 +137,16 @@ public class CliCodegenTest {
for (final AxContextAlbum a : policyModel.getAlbums().getAlbumsMap().values()) {
final AxArtifactKey key = a.getKey();
- codeGen.addContextAlbumDeclaration(kig.getName(key), kig.getVersion(key), kig.getUuid(key),
- kig.getDesc(key), a.getScope(), a.isWritable(), kig.getName(a.getItemSchema()),
- kig.getVersion(a.getItemSchema()));
+ codeGen.addContextAlbumDeclaration(
+ new CodeGenCliEditorBuilder()
+ .setName(kig.getName(key))
+ .setVersion(kig.getVersion(key))
+ .setUuid(kig.getUuid(key))
+ .setDescription(kig.getDesc(key))
+ .setScope(a.getScope())
+ .setWritable(a.isWritable())
+ .setSchemaName(kig.getName(a.getItemSchema()))
+ .setSchemaVersion(kig.getVersion(a.getItemSchema())));
}
// 5: policies