diff options
Diffstat (limited to 'src/test/java/org/onap/aai/validation/config/TestValidationControllerConfig.java')
-rw-r--r-- | src/test/java/org/onap/aai/validation/config/TestValidationControllerConfig.java | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/src/test/java/org/onap/aai/validation/config/TestValidationControllerConfig.java b/src/test/java/org/onap/aai/validation/config/TestValidationControllerConfig.java index a8e03eb..3ada0a1 100644 --- a/src/test/java/org/onap/aai/validation/config/TestValidationControllerConfig.java +++ b/src/test/java/org/onap/aai/validation/config/TestValidationControllerConfig.java @@ -1,19 +1,22 @@ -/* - * ============LICENSE_START=================================================== - * Copyright (c) 2018 Amdocs - * ============================================================================ +/** + * ============LICENSE_START======================================================= + * org.onap.aai + * ================================================================================ + * Copyright (c) 2018-2019 AT&T Intellectual Property. All rights reserved. + * Copyright (c) 2018-2019 European Software Marketing Ltd. + * ================================================================================ * 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 + * 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. - * ============LICENSE_END===================================================== + * ============LICENSE_END========================================================= */ package org.onap.aai.validation.config; @@ -25,12 +28,11 @@ import java.util.List; import javax.inject.Inject; import org.junit.Test; import org.junit.runner.RunWith; -import org.onap.aai.validation.config.ValidationControllerConfig; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; @RunWith(SpringJUnit4ClassRunner.class) -@ContextConfiguration(locations = {"classpath:/validation-controller-config/test-validation-service-beans.xml"}) +@ContextConfiguration(locations = { "classpath:/validation-controller-config/test-validation-service-beans.xml" }) public class TestValidationControllerConfig { static { @@ -42,17 +44,17 @@ public class TestValidationControllerConfig { @Test public void testValidationControllerConfig() { - ValidationControllerConfig expected = new ValidationControllerConfig(); - List<String> excludedEventActionList = new ArrayList<String>(); + List<String> excludedEventActionList = new ArrayList<>(); excludedEventActionList.add("DELETE"); - List<String> eventTypeRuleList = new ArrayList<String>(2); + List<String> eventTypeRuleList = new ArrayList<>(2); eventTypeRuleList.add("AAI-EVENT"); eventTypeRuleList.add("AAI-DATA-EXPORT-API"); - List<String> eventTypeModelList = new ArrayList<String>(); + List<String> eventTypeModelList = new ArrayList<>(); eventTypeModelList.add("AAI-DATA-EXPORT-NQ"); + ValidationControllerConfig expected = new ValidationControllerConfig(); expected.setEventDomain("devINT1"); expected.setExcludedEventActions(excludedEventActionList); expected.setEventTypeRule(eventTypeRuleList); |