1 package org.openecomp.sdc.common.config;
5 public class EcompErrorInfoTest {
7 private EcompErrorInfo createTestSubject() {
8 return new EcompErrorInfo();
12 public void testGetType() throws Exception {
13 EcompErrorInfo testSubject;
17 testSubject = createTestSubject();
18 result = testSubject.getType();
22 public void testSetType() throws Exception {
23 EcompErrorInfo testSubject;
27 testSubject = createTestSubject();
28 testSubject.setType(type);
32 public void testGetCode() throws Exception {
33 EcompErrorInfo testSubject;
37 testSubject = createTestSubject();
38 result = testSubject.getCode();
42 public void testSetCode() throws Exception {
43 EcompErrorInfo testSubject;
47 testSubject = createTestSubject();
48 testSubject.setCode(code);
52 public void testGetSeverity() throws Exception {
53 EcompErrorInfo testSubject;
57 testSubject = createTestSubject();
58 result = testSubject.getSeverity();
62 public void testSetSeverity() throws Exception {
63 EcompErrorInfo testSubject;
67 testSubject = createTestSubject();
68 testSubject.setSeverity(severity);
72 public void testGetDescription() throws Exception {
73 EcompErrorInfo testSubject;
77 testSubject = createTestSubject();
78 result = testSubject.getDescription();
82 public void testSetDescription() throws Exception {
83 EcompErrorInfo testSubject;
84 String description = "";
87 testSubject = createTestSubject();
88 testSubject.setDescription(description);
92 public void testGetAlarmSeverity() throws Exception {
93 EcompErrorInfo testSubject;
97 testSubject = createTestSubject();
98 result = testSubject.getAlarmSeverity();
102 public void testSetAlarmSeverity() throws Exception {
103 EcompErrorInfo testSubject;
104 String alarmSeverity = "";
107 testSubject = createTestSubject();
108 testSubject.setAlarmSeverity(alarmSeverity);