Catalog alignment
[sdc.git] / asdctool / src / test / java / org / openecomp / sdc / asdctool / migration / config / MigrationSpringConfigTest.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
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
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
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=========================================================
19  */
20
21 package org.openecomp.sdc.asdctool.migration.config;
22
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;
30
31 import static org.mockito.Mockito.mock;
32
33 public class MigrationSpringConfigTest {
34
35         private MigrationSpringConfig createTestSubject() {
36                 return new MigrationSpringConfig();
37         }
38
39         @Test
40         public void testSdcMigrationTool() throws Exception {
41                 MigrationSpringConfig testSubject;
42                 MigrationResolver migrationResolver = null;
43                 SdcRepoService sdcRepoService = null;
44                 SdcMigrationTool result;
45
46                 // default test
47                 testSubject = createTestSubject();
48                 result = testSubject.sdcMigrationTool(migrationResolver, sdcRepoService);
49         }
50
51         @Test
52         public void testMigrationResolver() throws Exception {
53                 MigrationSpringConfig testSubject;
54                 SdcRepoService sdcRepoService = null;
55                 SpringBeansMigrationResolver result;
56
57                 // default test
58                 testSubject = createTestSubject();
59                 result = testSubject.migrationResolver(sdcRepoService);
60         }
61
62         @Test
63         public void testSdcRepoService() throws Exception {
64                 MigrationSpringConfig testSubject;
65                 MigrationTasksDao migrationTasksDao = null;
66                 SdcRepoService result;
67
68                 // default test
69                 testSubject = createTestSubject();
70                 result = testSubject.sdcRepoService(migrationTasksDao);
71         }
72
73         @Test
74         public void testMigrationTasksDao() throws Exception {
75                 MigrationSpringConfig testSubject;
76                 MigrationTasksDao result;
77
78                 // default test
79                 testSubject = createTestSubject();
80                 result = testSubject.migrationTasksDao(mock(CassandraClient.class));
81         }
82
83
84 }