Deploy activities to SDC from Catalog
[so.git] / mso-catalog-db / src / test / java / org / onap / so / db / catalog / data / repository / ActivitySpecRepositoryTest.java
1 /*
2  * ============LICENSE_START======================================================= Copyright (C) 2019 Nordix
3  * Foundation. ================================================================================ Licensed under the
4  * Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may
5  * obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software
8  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
9  * either express or implied. See the License for the specific language governing permissions and limitations under the
10  * License.
11  *
12  * SPDX-License-Identifier: Apache-2.0 ============LICENSE_END=========================================================
13  */
14
15 package org.onap.so.db.catalog.data.repository;
16
17 import java.util.List;
18 import org.junit.Assert;
19 import org.junit.Test;
20 import org.onap.so.db.catalog.BaseTest;
21 import org.onap.so.db.catalog.beans.ActivitySpec;
22 import org.springframework.beans.factory.annotation.Autowired;
23 import org.springframework.util.CollectionUtils;
24
25 public class ActivitySpecRepositoryTest extends BaseTest {
26
27     @Autowired
28     private ActivitySpecRepository activitySpecRepository;
29
30     @Test
31     public void findAllTest() throws Exception {
32         List<ActivitySpec> activitySpecList = activitySpecRepository.findAll();
33         Assert.assertFalse(CollectionUtils.isEmpty(activitySpecList));
34     }
35 }