1 package org.openecomp.sdc.asdctool.migration.dao;
3 import java.math.BigInteger;
6 import org.openecomp.sdc.be.resources.data.MigrationTaskEntry;
8 public class MigrationTasksDaoTest {
10 private MigrationTasksDao createTestSubject() {
11 return new MigrationTasksDao();
14 @Test(expected=NullPointerException.class)
15 public void testInit() throws Exception {
16 MigrationTasksDao testSubject;
19 testSubject = createTestSubject();
23 @Test(expected=NullPointerException.class)
24 public void testGetLatestMinorVersion() throws Exception {
25 MigrationTasksDao testSubject;
26 BigInteger majorVersion = null;
30 testSubject = createTestSubject();
31 result = testSubject.getLatestMinorVersion(majorVersion);
34 @Test(expected=NullPointerException.class)
35 public void testDeleteAllTasksForVersion() throws Exception {
36 MigrationTasksDao testSubject;
37 BigInteger majorVersion = null;
40 testSubject = createTestSubject();
41 testSubject.deleteAllTasksForVersion(majorVersion);
44 @Test(expected=NullPointerException.class)
45 public void testCreateMigrationTask() throws Exception {
46 MigrationTasksDao testSubject;
47 MigrationTaskEntry migrationTask = null;
50 testSubject = createTestSubject();
51 testSubject.createMigrationTask(migrationTask);