blob: 00b6d573afab8d7e9de8c2d6ab9a4565c84dd0c4 (
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.TitanDao;
import org.openecomp.sdc.be.dao.titan.TitanGraphClient;
import org.openecomp.sdc.be.model.jsontitan.operations.TopologyTemplateOperation;
public class SdcCatalogMigrationTest {
private SdcCatalogMigration createTestSubject() {
return new SdcCatalogMigration(new TopologyTemplateOperation(), new TitanDao(new TitanGraphClient()));
}
@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();
}
}
|