blob: 1d771c86d5eff6b11f3309c3221f6f2e05e98e6c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
package org.onap.so.client.cds.beans;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import org.junit.Test;
public class ConfigDeployPropertiesForPnfTest {
ConfigDeployPropertiesForPnf configDeployPropertiesForPnf = new ConfigDeployPropertiesForPnf();
private String serviceInstanceId;
private String pnfId;
private String pnfName;
private String serviceModelUuid;
private String pnfCustomizationUuid;
@Test
public final void testConfigDeployPropertiesForPnfTest() {
configDeployPropertiesForPnf.setServiceInstanceId("service-instance-id");
configDeployPropertiesForPnf.setServiceModelUuid("service-model-uuid");
configDeployPropertiesForPnf.setPnfCustomizationUuid("pnf-customization-uuid");
configDeployPropertiesForPnf.setPnfId("pnf-id");
configDeployPropertiesForPnf.setPnfName("pnf-name");
assertNotNull(configDeployPropertiesForPnf.getServiceInstanceId());
assertNotNull(configDeployPropertiesForPnf.getServiceModelUuid());
assertNotNull(configDeployPropertiesForPnf.getPnfCustomizationUuid());
assertNotNull(configDeployPropertiesForPnf.getPnfId());
assertNotNull(configDeployPropertiesForPnf.getPnfName());
assertEquals("service-instance-id", configDeployPropertiesForPnf.getServiceInstanceId());
assertEquals("service-model-uuid", configDeployPropertiesForPnf.getServiceModelUuid());
assertEquals("pnf-customization-uuid", configDeployPropertiesForPnf.getPnfCustomizationUuid());
assertEquals("pnf-id", configDeployPropertiesForPnf.getPnfId());
assertEquals("pnf-name", configDeployPropertiesForPnf.getPnfName());
}
@Test
public void testtoString() {
final StringBuilder sb = new StringBuilder("{");
sb.append("\"service-instance-id\":").append("\"").append(serviceInstanceId).append("\"");
sb.append(", \"pnf-id\":").append("\"").append(pnfId).append("\"");
sb.append(", \"pnf-name\":").append("\"").append(pnfName).append("\"");
sb.append(", \"service-model-uuid\":").append("\"").append(serviceModelUuid).append("\"");
sb.append(", \"pnf-customization-uuid\":").append("\"").append(pnfCustomizationUuid).append("\"");
sb.append('}');
String Expexted = sb.toString();
assertEquals(Expexted, configDeployPropertiesForPnf.toString());
}
}
|