From 8b7a0405a97cacf765c0e9a1988af98cd91a9f67 Mon Sep 17 00:00:00 2001 From: vempo Date: Sun, 28 Oct 2018 19:04:06 +0200 Subject: Handled not thread-safe fields in configuration Replaced not thread-safe fields with synchornized versions, removed duplicate code, deleted class that was accessing DB, made surefire plugin to pick up all available unit tests (instead of hand-picked). Change-Id: Idff3ac333dc87ebfd3ecf50438ba0179556eb9c9 Issue-ID: SDC-1867 Signed-off-by: vempo --- .../src/test/java/org/onap/config/TestCMSuite.java | 52 ---------------------- 1 file changed, 52 deletions(-) delete mode 100755 common/onap-common-configuration-management/onap-configuration-management-core/src/test/java/org/onap/config/TestCMSuite.java (limited to 'common/onap-common-configuration-management/onap-configuration-management-core/src/test') diff --git a/common/onap-common-configuration-management/onap-configuration-management-core/src/test/java/org/onap/config/TestCMSuite.java b/common/onap-common-configuration-management/onap-configuration-management-core/src/test/java/org/onap/config/TestCMSuite.java deleted file mode 100755 index 6c460160d0..0000000000 --- a/common/onap-common-configuration-management/onap-configuration-management-core/src/test/java/org/onap/config/TestCMSuite.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright © 2016-2018 European Support Limited - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.onap.config; - -import org.junit.runner.RunWith; -import org.junit.runners.Suite; -import org.onap.config.test.CliFallbackAndLookupTest; -import org.onap.config.test.CliTest; -import org.onap.config.test.ConfigSourceLocationTest; -import org.onap.config.test.FallbackConfigTest; -import org.onap.config.test.FallbackToGlobalNamespaceTest; -import org.onap.config.test.GlobalAndNamespaceConfigTest; -import org.onap.config.test.JavaPropertiesConfigTest; -import org.onap.config.test.JsonConfigTest; -import org.onap.config.test.LoadOrderMergeAndOverrideTest; -import org.onap.config.test.ModeAsConfigPropTest; -import org.onap.config.test.MultiTenancyConfigTest; -import org.onap.config.test.NodeSpecificCliTest; -import org.onap.config.test.ValidateDefaultModeTest; -import org.onap.config.test.XmlConfigTest; -import org.onap.config.test.YamlConfigTest; - -/** - * Created by sheetalm on 10/25/2016. - */ -@RunWith(Suite.class) -@Suite.SuiteClasses( - {ConfigurationUtilsTest.class, JavaPropertiesConfigTest.class, JsonConfigTest.class, XmlConfigTest.class, - YamlConfigTest.class, CliFallbackAndLookupTest.class, CliTest.class, ConfigSourceLocationTest.class, - FallbackConfigTest.class, FallbackToGlobalNamespaceTest.class, GlobalAndNamespaceConfigTest.class, - ModeAsConfigPropTest.class, MultiTenancyConfigTest.class, NodeSpecificCliTest.class, - ValidateDefaultModeTest.class, LoadOrderMergeAndOverrideTest.class}) -public class TestCMSuite extends junit.framework.TestSuite { - - private TestCMSuite() { - // prevent instantiation - } -} -- cgit 1.2.3-korg