diff options
author | mark.j.leonard <mark.j.leonard@gmail.com> | 2019-02-12 12:41:54 +0000 |
---|---|---|
committer | mark.j.leonard <mark.j.leonard@gmail.com> | 2019-02-12 12:41:54 +0000 |
commit | ef814149fcc9593a3296e1d7ccd87a679c27708b (patch) | |
tree | a0263b396f4d94c4f300c7bcda5d393bbfca8ce5 /src/test | |
parent | b3cce282f35ff30042a860b788a003f38393c9d3 (diff) |
Add the Maven license plugin
Update some Java files with incorrect import ordering. Apply an updated
License text (referencing the year 2019).
Change-Id: Iaf0a7f8a4f2fd4dfb52eda87366e1f8d50e6e06c
Issue-ID: AAI-2057
Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/org/onap/aai/validation/logging/TestApplicationLogger.java | 22 | ||||
-rw-r--r-- | src/test/java/org/onap/aai/validation/modeldriven/TestModelId.java | 17 |
2 files changed, 21 insertions, 18 deletions
diff --git a/src/test/java/org/onap/aai/validation/logging/TestApplicationLogger.java b/src/test/java/org/onap/aai/validation/logging/TestApplicationLogger.java index d19d43d..a5876f2 100644 --- a/src/test/java/org/onap/aai/validation/logging/TestApplicationLogger.java +++ b/src/test/java/org/onap/aai/validation/logging/TestApplicationLogger.java @@ -1,20 +1,24 @@ -/* - * ============LICENSE_START=================================================== - * Copyright (c) 2018 Amdocs - * ============================================================================ +/** + * ============LICENSE_START======================================================= + * org.onap.aai + * ================================================================================ + * Copyright © 2018-2019 AT&T Intellectual Property. All rights reserved. + * Copyright © 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.logging; import static org.hamcrest.CoreMatchers.containsString; @@ -27,14 +31,11 @@ import java.io.IOException; import java.nio.file.Paths; import java.util.Arrays; import org.apache.commons.lang.time.StopWatch; -import org.junit.BeforeClass; import org.junit.Test; import org.mockito.Mockito; import org.onap.aai.cl.api.LogFields; import org.onap.aai.cl.api.Logger; import org.onap.aai.cl.mdc.MdcOverride; -import org.onap.aai.validation.logging.ApplicationMsgs; -import org.onap.aai.validation.logging.LogHelper; import org.onap.aai.validation.logging.LogHelper.TriConsumer; import org.springframework.http.HttpHeaders; @@ -46,8 +47,7 @@ import org.springframework.http.HttpHeaders; */ public class TestApplicationLogger { - @BeforeClass - public static void setupClass() { + static { System.setProperty("APP_HOME", "."); } diff --git a/src/test/java/org/onap/aai/validation/modeldriven/TestModelId.java b/src/test/java/org/onap/aai/validation/modeldriven/TestModelId.java index 7cefede..972cf9a 100644 --- a/src/test/java/org/onap/aai/validation/modeldriven/TestModelId.java +++ b/src/test/java/org/onap/aai/validation/modeldriven/TestModelId.java @@ -1,20 +1,24 @@ -/* - * ============LICENSE_START=================================================== - * Copyright (c) 2018 Amdocs - * ============================================================================ +/** + * ============LICENSE_START======================================================= + * org.onap.aai + * ================================================================================ + * Copyright © 2018-2019 AT&T Intellectual Property. All rights reserved. + * Copyright © 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.modeldriven; import static org.hamcrest.CoreMatchers.equalTo; @@ -23,7 +27,6 @@ import static org.hamcrest.CoreMatchers.not; import static org.junit.Assert.assertThat; import org.junit.Test; -import org.onap.aai.validation.modeldriven.ModelId; public class TestModelId { |