Raise JUnit coverage asdctool
[sdc.git] / asdctool / src / test / java / org / openecomp / sdc / asdctool / migration / core / execution / MigrationExecutionResultTest.java
1 package org.openecomp.sdc.asdctool.migration.core.execution;
2
3 import org.junit.Test;
4 import org.openecomp.sdc.asdctool.migration.core.DBVersion;
5 import org.openecomp.sdc.asdctool.migration.core.task.MigrationResult.MigrationStatus;
6 import org.openecomp.sdc.be.resources.data.MigrationTaskEntry;
7
8 public class MigrationExecutionResultTest {
9
10         private MigrationExecutionResult createTestSubject() {
11                 return new MigrationExecutionResult();
12         }
13
14         @Test(expected=NullPointerException.class)
15         public void testToMigrationTaskEntry() throws Exception {
16                 MigrationExecutionResult testSubject;
17                 MigrationTaskEntry result;
18
19                 // default test
20                 testSubject = createTestSubject();
21                 result = testSubject.toMigrationTaskEntry();
22         }
23
24         @Test
25         public void testGetMigrationStatus() throws Exception {
26                 MigrationExecutionResult testSubject;
27                 MigrationStatus result;
28
29                 // default test
30                 testSubject = createTestSubject();
31                 result = testSubject.getMigrationStatus();
32         }
33
34         @Test
35         public void testGetMsg() throws Exception {
36                 MigrationExecutionResult testSubject;
37                 String result;
38
39                 // default test
40                 testSubject = createTestSubject();
41                 result = testSubject.getMsg();
42         }
43
44         @Test
45         public void testGetVersion() throws Exception {
46                 MigrationExecutionResult testSubject;
47                 DBVersion result;
48
49                 // default test
50                 testSubject = createTestSubject();
51                 result = testSubject.getVersion();
52         }
53
54         @Test
55         public void testSetVersion() throws Exception {
56                 MigrationExecutionResult testSubject;
57                 DBVersion version = null;
58
59                 // default test
60                 testSubject = createTestSubject();
61                 testSubject.setVersion(version);
62         }
63
64         @Test
65         public void testGetDescription() throws Exception {
66                 MigrationExecutionResult testSubject;
67                 String result;
68
69                 // default test
70                 testSubject = createTestSubject();
71                 result = testSubject.getDescription();
72         }
73
74         @Test
75         public void testSetDescription() throws Exception {
76                 MigrationExecutionResult testSubject;
77                 String description = "";
78
79                 // default test
80                 testSubject = createTestSubject();
81                 testSubject.setDescription(description);
82         }
83 }