2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.openecomp.sdc.asdctool.migration.config;
23 import org.junit.Test;
24 import org.openecomp.sdc.asdctool.migration.core.SdcMigrationTool;
25 import org.openecomp.sdc.asdctool.migration.dao.MigrationTasksDao;
26 import org.openecomp.sdc.asdctool.migration.resolver.MigrationResolver;
27 import org.openecomp.sdc.asdctool.migration.resolver.SpringBeansMigrationResolver;
28 import org.openecomp.sdc.asdctool.migration.service.SdcRepoService;
29 import org.openecomp.sdc.be.dao.cassandra.CassandraClient;
31 import static org.mockito.Mockito.mock;
33 public class MigrationSpringConfigTest {
35 private MigrationSpringConfig createTestSubject() {
36 return new MigrationSpringConfig();
40 public void testSdcMigrationTool() throws Exception {
41 MigrationSpringConfig testSubject;
42 MigrationResolver migrationResolver = null;
43 SdcRepoService sdcRepoService = null;
44 SdcMigrationTool result;
47 testSubject = createTestSubject();
48 result = testSubject.sdcMigrationTool(migrationResolver, sdcRepoService);
52 public void testMigrationResolver() throws Exception {
53 MigrationSpringConfig testSubject;
54 SdcRepoService sdcRepoService = null;
55 SpringBeansMigrationResolver result;
58 testSubject = createTestSubject();
59 result = testSubject.migrationResolver(sdcRepoService);
63 public void testSdcRepoService() throws Exception {
64 MigrationSpringConfig testSubject;
65 MigrationTasksDao migrationTasksDao = null;
66 SdcRepoService result;
69 testSubject = createTestSubject();
70 result = testSubject.sdcRepoService(migrationTasksDao);
74 public void testMigrationTasksDao() throws Exception {
75 MigrationSpringConfig testSubject;
76 MigrationTasksDao result;
79 testSubject = createTestSubject();
80 result = testSubject.migrationTasksDao(mock(CassandraClient.class));