Migrate "ms/controllerblueprints" from ccsdk/apps
[ccsdk/cds.git] / ms / blueprintsprocessor / application / src / test / java / org / onap / ccsdk / apps / blueprintsprocessor / BlueprintProcessorApplicationTest.java
1 /*\r
2  *  Copyright © 2017-2018 AT&T Intellectual Property.\r
3  *\r
4  *  Licensed under the Apache License, Version 2.0 (the "License");\r
5  *  you may not use this file except in compliance with the License.\r
6  *  You may obtain a copy of the License at\r
7  *\r
8  *      http://www.apache.org/licenses/LICENSE-2.0\r
9  *\r
10  *  Unless required by applicable law or agreed to in writing, software\r
11  *  distributed under the License is distributed on an "AS IS" BASIS,\r
12  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
13  *  See the License for the specific language governing permissions and\r
14  *  limitations under the License.\r
15  */\r
16 \r
17 package org.onap.ccsdk.apps.blueprintsprocessor;\r
18 \r
19 \r
20 import org.junit.Assert;\r
21 import org.junit.Before;\r
22 import org.junit.Test;\r
23 import org.junit.runner.RunWith;\r
24 import org.onap.ccsdk.apps.controllerblueprints.core.config.BluePrintLoadConfiguration;\r
25 import org.springframework.beans.factory.annotation.Autowired;\r
26 import org.springframework.boot.test.context.SpringBootTest;\r
27 import org.springframework.context.ApplicationContext;\r
28 import org.springframework.test.context.ContextConfiguration;\r
29 import org.springframework.test.context.junit4.SpringRunner;\r
30 \r
31 /**\r
32  * BlueprintProcessorApplicationTest\r
33  *\r
34  * @author Brinda Santh\r
35  * DATE : 8/14/2018\r
36  */\r
37 \r
38 @RunWith(SpringRunner.class)\r
39 @ContextConfiguration(classes = {BlueprintProcessorApplication.class, BluePrintLoadConfiguration.class})\r
40 @SpringBootTest(classes = BlueprintProcessorApplication.class,\r
41         webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)\r
42 public class BlueprintProcessorApplicationTest {\r
43 \r
44     @Autowired\r
45     private ApplicationContext context;\r
46 \r
47     @Before\r
48     public void setUp() {\r
49 \r
50     }\r
51 \r
52     @Test\r
53     public void testSample() {\r
54         Assert.assertNotNull("Failed to create Application Context ", context);\r
55     }\r
56 \r
57 }\r