1 package org.openecomp.sdc.asdctool.migration.tasks.mig1802;
4 import org.openecomp.sdc.asdctool.migration.core.DBVersion;
5 import org.openecomp.sdc.asdctool.migration.core.task.MigrationResult;
6 import org.openecomp.sdc.be.dao.jsongraph.TitanDao;
7 import org.openecomp.sdc.be.dao.titan.TitanGraphClient;
8 import org.openecomp.sdc.be.model.jsontitan.operations.TopologyTemplateOperation;
10 public class SdcCatalogMigrationTest {
12 private SdcCatalogMigration createTestSubject() {
13 return new SdcCatalogMigration(new TopologyTemplateOperation(), new TitanDao(new TitanGraphClient()));
17 public void testDescription() throws Exception {
18 SdcCatalogMigration testSubject;
22 testSubject = createTestSubject();
23 result = testSubject.description();
27 public void testGetVersion() throws Exception {
28 SdcCatalogMigration testSubject;
32 testSubject = createTestSubject();
33 result = testSubject.getVersion();
37 public void testMigrate() throws Exception {
38 SdcCatalogMigration testSubject;
39 MigrationResult result;
42 testSubject = createTestSubject();
43 result = testSubject.migrate();