aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorezhil <ezhrajam@in.ibm.com>2020-05-06 15:20:53 +0530
committerezhil <ezhrajam@in.ibm.com>2020-05-06 15:21:06 +0530
commit4781f3e75a2dcc2b23f0c77c4f52fdb5b2f0cdf8 (patch)
treeb51572920d22f16ba2784c2b322279b4c633c147
parentc3c0027a834fc095196b11989e288c354a4420c6 (diff)
Junit for RelationshipList3.0.3
Issue-ID: USECASEUI-439 Change-Id: Ibbd60c49d66a21f2a64abb766d2c35fdf79acd63 Signed-off-by: ezhil <ezhrajam@in.ibm.com>
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/RelationshipListTest.java20
1 files changed, 19 insertions, 1 deletions
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/RelationshipListTest.java b/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/RelationshipListTest.java
index 48a47a38..fe4ad627 100644
--- a/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/RelationshipListTest.java
+++ b/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/RelationshipListTest.java
@@ -2,6 +2,9 @@ package org.onap.usecaseui.server.service.lcm.domain.aai.bean;
import org.junit.After;
import org.junit.Before;
+import org.junit.Test;
+
+import static org.junit.Assert.assertNotNull;
/**
* Copyright (C) 2020 Huawei, Inc. and others. All rights reserved.
@@ -28,11 +31,26 @@ public class RelationshipListTest {
public void after() throws Exception {
}
+ @Test
public void relationshipListTest() throws Exception
{
RelationshipList relationshipList = new RelationshipList();
+ Relationship relationship = new Relationship();
+ RelationshipData relationshipData = new RelationshipData();
+
+ relationshipData.setRelationshipKey("123");
+ relationshipData.setRelationshipValue("123");
+
+ relationship.setRelatedLink("123");
+ relationship.setRelatedTo("123");
+ relationship.setRelationshipLabel("123");
+
+ RelationshipData[] rd=new RelationshipData[]{relationshipData};
+ relationship.setRelationshipData(rd);
- relationshipList.getRelationship();
+ Relationship[] rslist=new Relationship[]{relationship};
+ relationshipList.setRelationship(rslist);
+ assertNotNull(relationshipList.getRelationship());
}