c0aa693e6f56780430caec5de749bcfa03ffc28b
[sdc.git] / common / onap-common-configuration-management / onap-configuration-management-core / src / test / java / org / onap / config / TestCMSuite.java
1 /*
2  * Copyright © 2016-2018 European Support Limited
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 package org.onap.config;
18
19 import org.junit.AfterClass;
20 import org.junit.runner.RunWith;
21 import org.junit.runners.Suite;
22 import org.onap.config.test.CLIFallbackAndLookupTest;
23 import org.onap.config.test.CliTest;
24 import org.onap.config.test.ConfigSourceLocationTest;
25 import org.onap.config.test.FallbackConfigTest;
26 import org.onap.config.test.FallbackToGlobalNSTest;
27 import org.onap.config.test.GlobalAndNSConfigTest;
28 import org.onap.config.test.JAVAPropertiesConfigTest;
29 import org.onap.config.test.JSONConfigTest;
30 import org.onap.config.test.LoadOrderMergeAndOverrideTest;
31 import org.onap.config.test.ModeAsConfigPropTest;
32 import org.onap.config.test.MultiTenancyConfigTest;
33 import org.onap.config.test.NodeSpecificCliTest;
34 import org.onap.config.test.ValidateDefaultModeTest;
35 import org.onap.config.test.XMLConfigTest;
36 import org.onap.config.test.YAMLConfigTest;
37
38 /**
39  * Created by sheetalm on 10/25/2016.
40  */
41
42 @RunWith(Suite.class)
43 @Suite.SuiteClasses({
44         ConfigurationUtilsTest.class,
45         JAVAPropertiesConfigTest.class,
46         JSONConfigTest.class,
47         XMLConfigTest.class,
48         YAMLConfigTest.class,
49         CLIFallbackAndLookupTest.class,
50         CliTest.class,
51         ConfigSourceLocationTest.class,
52         FallbackConfigTest.class,
53         FallbackToGlobalNSTest.class,
54         GlobalAndNSConfigTest.class,
55         ModeAsConfigPropTest.class,
56         MultiTenancyConfigTest.class,
57         NodeSpecificCliTest.class,
58         ValidateDefaultModeTest.class,
59         LoadOrderMergeAndOverrideTest.class})
60
61 public class TestCMSuite extends junit.framework.TestSuite {
62
63     private TestCMSuite() {
64         // prevent instantiation
65     }
66
67     @AfterClass
68     public static void tearDown() {
69         try {
70             ConfigurationUtils.executeDdlSql("truncate dox.configuration_change");
71             ConfigurationUtils.executeDdlSql("truncate dox.configuration");
72         } catch (Exception e) {
73             e.printStackTrace();
74         }
75     }
76 }