diff options
author | Parshad Patel <pars.patel@samsung.com> | 2019-04-19 15:46:20 +0900 |
---|---|---|
committer | Parshad Patel <pars.patel@samsung.com> | 2019-04-19 15:46:27 +0900 |
commit | f2dc71a2443c29c00da7750230015d6555e86b1f (patch) | |
tree | b029cfca1aa63bef9d76599d5546ea887b6c442e /vid-app-common/src/test/java | |
parent | e6571c6df02776c335b156b0fb44e31d723ffa06 (diff) |
Fix sonar issue in vid-app-common
Fix Constructor has 8 parameters, which is greater than 7 authorized issue
Issue-ID: VID-464
Change-Id: If3311351746f4a4890ab73e844decd34486a324f
Signed-off-by: Parshad Patel <pars.patel@samsung.com>
Diffstat (limited to 'vid-app-common/src/test/java')
-rw-r--r-- | vid-app-common/src/test/java/org/onap/vid/aai/OperationalEnvironmentTest.java | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/vid-app-common/src/test/java/org/onap/vid/aai/OperationalEnvironmentTest.java b/vid-app-common/src/test/java/org/onap/vid/aai/OperationalEnvironmentTest.java index c331b3252..076c46284 100644 --- a/vid-app-common/src/test/java/org/onap/vid/aai/OperationalEnvironmentTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/aai/OperationalEnvironmentTest.java @@ -56,10 +56,15 @@ public class OperationalEnvironmentTest { RelationshipList relationshipList = new RelationshipList(); relationshipList.relationship = new ArrayList<>(); - OperationalEnvironment operationalEnvironment = new OperationalEnvironment("testId", - "testEnvName", "testEnvType", - "testEnvStatus", "testTenant", "testWorkload", - "testResource", relationshipList); + OperationalEnvironment operationalEnvironment = + new OperationalEnvironment.OperationalEnvironmentBuilder() + .setOperationalEnvironmentId("testId") + .setOperationalEnvironmentName("testEnvName") + .setOperationalEnvironmentType("testEnvType") + .setOperationalEnvironmentStatus("testEnvStatus") + .setTenantContext("testTenant").setWorkloadContext("testWorkload") + .setResourceVersion("testResource").setRelationshipList(relationshipList) + .createOperationalEnvironment(); assertThat(operationalEnvironment.getOperationalEnvironmentId()).isEqualTo("testId"); assertThat(operationalEnvironment.getWorkloadContext()).isEqualTo("testWorkload"); |