Replaced all tabs with spaces in java and pom.xml
[so.git] / bpmn / MSOCommonBPMN / src / test / java / org / onap / so / client / cds / beans / ConfigDeployPropertiesForVnfTest.java
1 package org.onap.so.client.cds.beans;
2
3 import static org.junit.Assert.assertEquals;
4 import static org.junit.Assert.assertNotNull;
5 import org.junit.Test;
6
7 public class ConfigDeployPropertiesForVnfTest {
8     ConfigDeployPropertiesForVnf configDeployPropertiesForVnf = new ConfigDeployPropertiesForVnf();
9     private String serviceInstanceId;
10     private String vnfId;
11     private String vnfName;
12     private String serviceModelUuid;
13     private String vnfCustomizationUuid;
14
15     @Test
16     public final void testConfigDeployPropertiesForVnf() {
17         configDeployPropertiesForVnf.setServiceInstanceId("service-instance-id");
18         configDeployPropertiesForVnf.setServiceModelUuid("service-model-uuid");
19         configDeployPropertiesForVnf.setVnfCustomizationUuid("vnf-customization-uuid");
20         configDeployPropertiesForVnf.setVnfId("vnf-id");
21         configDeployPropertiesForVnf.setVnfName("vnf-name");
22         assertNotNull(configDeployPropertiesForVnf.getServiceInstanceId());
23         assertNotNull(configDeployPropertiesForVnf.getServiceModelUuid());
24         assertNotNull(configDeployPropertiesForVnf.getVnfCustomizationUuid());
25         assertNotNull(configDeployPropertiesForVnf.getVnfId());
26         assertNotNull(configDeployPropertiesForVnf.getVnfName());
27
28         assertEquals("service-instance-id", configDeployPropertiesForVnf.getServiceInstanceId());
29         assertEquals("service-model-uuid", configDeployPropertiesForVnf.getServiceModelUuid());
30         assertEquals("vnf-customization-uuid", configDeployPropertiesForVnf.getVnfCustomizationUuid());
31         assertEquals("vnf-id", configDeployPropertiesForVnf.getVnfId());
32         assertEquals("vnf-name", configDeployPropertiesForVnf.getVnfName());
33     }
34
35     @Test
36     public void testtoString() {
37         final StringBuilder sb = new StringBuilder("{");
38         sb.append("\"service-instance-id\":").append("\"").append(serviceInstanceId).append("\"");
39         sb.append(", \"vnf-id\":").append("\"").append(vnfId).append("\"");
40         sb.append(", \"vnf-name\":").append("\"").append(vnfName).append("\"");
41         sb.append(", \"service-model-uuid\":").append("\"").append(serviceModelUuid).append("\"");
42         sb.append(", \"vnf-customization-uuid\":").append("\"").append(vnfCustomizationUuid).append("\"");
43         sb.append('}');
44         String Expexted = sb.toString();
45         assertEquals(Expexted, configDeployPropertiesForVnf.toString());
46
47     }
48 }