summaryrefslogtreecommitdiffstats
path: root/auth/cli-codegen/src/test
diff options
context:
space:
mode:
authorArindam Mondal <arind.mondal@samsung.com>2019-02-18 18:27:51 +0900
committerarindamm <arind.mondal@samsung.com>2019-02-20 10:59:42 +0900
commit517610a8a99a416ba4e81b333dea7deca10caed2 (patch)
treefb2c291ee1ca69a6f616efbc856fb294e2405c70 /auth/cli-codegen/src/test
parent05df038e0b09bfd5f0c9bfc1e8aa10f9c97f39a4 (diff)
Fix sonar code smell
Issue-ID: POLICY-1523 Change-Id: I24f9fe5811bb93597efe79c98572c5249e74026c Signed-off-by: arindamm <arind.mondal@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/CodeGeneratorCliEditorTest.java8
1 files changed, 6 insertions, 2 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 e1bf3b298..615f2e903 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
@@ -1,6 +1,7 @@
/*-
* ============LICENSE_START=======================================================
* Copyright (C) 2018 Ericsson. All rights reserved.
+ * Modifications Copyright (C) 2019 Samsung Electronics Co., Ltd.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -120,8 +121,11 @@ public class CodeGeneratorCliEditorTest {
final List<ST> parameters = getParametersForTask(codeGen, t);
final List<ST> contextRefs = getCtxtRefsForTask(codeGen, t);
- codeGen.addTaskDeclaration(kig.getName(key), kig.getVersion(key), kig.getUuid(key), kig.getDesc(key),
- infields, outfields, logic, parameters, contextRefs);
+ codeGen.addTaskDeclaration(
+ new TaskDeclarationBuilder().setName(kig.getName(key)).setVersion(kig.getVersion(key))
+ .setUuid(kig.getUuid(key)).setDescription(kig.getDesc(key)).setInfields(infields)
+ .setOutfields(outfields).setLogic(logic).setParameters(parameters)
+ .setContextRefs(contextRefs));
}
// 3: events