diff options
author | Jorge Hernandez <jorge.hernandez-herrero@att.com> | 2018-11-26 17:15:31 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-11-26 17:15:31 +0000 |
commit | 80540def7348e195ffacfbbc7c23e2e68e154965 (patch) | |
tree | b4c9656d383de13728ed4f63968b28c8d6e60ee2 /auth/cli-codegen/src/test | |
parent | 3688d3901ad241be26671e520da0e01e4c8089c0 (diff) | |
parent | 12f38c0b199dfe60932ffbcc74bca947b61136b6 (diff) |
Merge "Fix sonar issue cli codegen"
Diffstat (limited to 'auth/cli-codegen/src/test')
-rw-r--r-- | auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/CliCodegenTest.java | 12 |
1 files changed, 10 insertions, 2 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 956e302c6..5433f2d15 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 @@ -129,8 +129,16 @@ public class CliCodegenTest { final AxArtifactKey key = e.getKey(); final List<ST> fields = getParametersForEvent(codeGen, e); - codeGen.addEventDeclaration(kig.getName(key), kig.getVersion(key), kig.getUuid(key), kig.getDesc(key), - e.getNameSpace(), e.getSource(), e.getTarget(), fields); + codeGen.addEventDeclaration( + new EventDeclarationBuilder() + .setName(kig.getName(key)) + .setVersion(kig.getVersion(key)) + .setUuid(kig.getUuid(key)) + .setDescription(kig.getDesc(key)) + .setNameSpace(e.getNameSpace()) + .setSource(e.getSource()) + .setTarget(e.getTarget()) + .setFields(fields)); } // 4: context albums |