Add test cases to increase coverage
[aai/sparky-be.git] / sparkybe-onap-service / src / test / java / org / onap / aai / sparky / viewandinspect / entity / GizmoRelationshipHintTest.java
1 package org.onap.aai.sparky.viewandinspect.entity;
2
3 import static org.junit.Assert.assertNotNull;
4
5 import org.junit.Before;
6 import org.junit.Test;
7
8 public class GizmoRelationshipHintTest {
9
10   private GizmoRelationshipHint gizmoRelationshipHint;
11
12   @Before
13   public void init() throws Exception {
14
15     gizmoRelationshipHint = new GizmoRelationshipHint();
16
17   }
18
19   @Test
20   public void updateValues() {
21
22
23     gizmoRelationshipHint.setId("1664646");
24     assertNotNull(gizmoRelationshipHint.getId());
25     gizmoRelationshipHint.setType("pserver");
26     assertNotNull(gizmoRelationshipHint.getType());
27     gizmoRelationshipHint.setUrl("https://magicaltest.com:6666/v2/tenant-id/servers/vserver-id");
28     assertNotNull(gizmoRelationshipHint.getUrl());
29     gizmoRelationshipHint.setSource("pserver");
30     assertNotNull(gizmoRelationshipHint.getSource());
31     gizmoRelationshipHint.setTarget("generic-vnf");
32     assertNotNull(gizmoRelationshipHint.getTarget());
33
34
35
36   }
37 }