aboutsummaryrefslogtreecommitdiffstats
path: root/asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/tasks/mig1802/SdcCatalogMigrationTest.java
blob: 47481f8f461c1f186dc9ab3b6dc55f17d38653d4 (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
package org.openecomp.sdc.asdctool.migration.tasks.mig1802;

import org.junit.Test;
import org.openecomp.sdc.asdctool.migration.core.DBVersion;
import org.openecomp.sdc.asdctool.migration.core.task.MigrationResult;
import org.openecomp.sdc.be.dao.jsongraph.JanusGraphDao;
import org.openecomp.sdc.be.dao.janusgraph.JanusGraphClient;
import org.openecomp.sdc.be.model.jsonjanusgraph.operations.TopologyTemplateOperation;

public class SdcCatalogMigrationTest {

	private SdcCatalogMigration createTestSubject() {
		return new SdcCatalogMigration(new TopologyTemplateOperation(), new JanusGraphDao(new JanusGraphClient()));
	}

	@Test
	public void testDescription() throws Exception {
		SdcCatalogMigration testSubject;
		String result;

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

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

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

	@Test
	public void testMigrate() throws Exception {
		SdcCatalogMigration testSubject;
		MigrationResult result;

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