summaryrefslogtreecommitdiffstats
path: root/asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/core/execution/MigrationExecutionResultTest.java
blob: 2831f7668891df4bbd3646ebc6db126c902f6a4c (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
package org.openecomp.sdc.asdctool.migration.core.execution;

import org.junit.Test;
import org.openecomp.sdc.asdctool.migration.core.DBVersion;
import org.openecomp.sdc.asdctool.migration.core.task.MigrationResult.MigrationStatus;
import org.openecomp.sdc.be.resources.data.MigrationTaskEntry;

public class MigrationExecutionResultTest {

	private MigrationExecutionResult createTestSubject() {
		return new MigrationExecutionResult();
	}

	@Test(expected=NullPointerException.class)
	public void testToMigrationTaskEntry() throws Exception {
		MigrationExecutionResult testSubject;
		MigrationTaskEntry result;

		// default test
		testSubject = createTestSubject();
		result = testSubject.toMigrationTaskEntry();
	}

	@Test
	public void testGetMigrationStatus() throws Exception {
		MigrationExecutionResult testSubject;
		MigrationStatus result;

		// default test
		testSubject = createTestSubject();
		result = testSubject.getMigrationStatus();
	}

	@Test
	public void testGetMsg() throws Exception {
		MigrationExecutionResult testSubject;
		String result;

		// default test
		testSubject = createTestSubject();
		result = testSubject.getMsg();
	}

	@Test
	public void testGetVersion() throws Exception {
		MigrationExecutionResult testSubject;
		DBVersion result;

		// default test
		testSubject = createTestSubject();
		result = testSubject.getVersion();
	}

	@Test
	public void testSetVersion() throws Exception {
		MigrationExecutionResult testSubject;
		DBVersion version = null;

		// default test
		testSubject = createTestSubject();
		testSubject.setVersion(version);
	}

	@Test
	public void testGetDescription() throws Exception {
		MigrationExecutionResult testSubject;
		String result;

		// default test
		testSubject = createTestSubject();
		result = testSubject.getDescription();
	}

	@Test
	public void testSetDescription() throws Exception {
		MigrationExecutionResult testSubject;
		String description = "";

		// default test
		testSubject = createTestSubject();
		testSubject.setDescription(description);
	}
}