Fix sonar issues 91/119891/1
authorarkadiusz.adamski <aadamski@est.tech>
Wed, 24 Mar 2021 16:55:39 +0000 (16:55 +0000)
committerarkadiusz.adamski <aadamski@est.tech>
Wed, 24 Mar 2021 16:55:39 +0000 (16:55 +0000)
- change test method name to avoid triggering SQ warning

Issue-ID: POLICY-3093
Signed-off-by: arkadiusz.adamski <aadamski@est.tech>
Change-Id: Id2997319e9986582a85f383c1f737340f4b4ea2c

testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/events/syncasync/AsyncEventMimoTest.java
testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/events/syncasync/AsyncEventMisoTest.java
testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/events/syncasync/AsyncEventSimoTest.java
testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/events/syncasync/AsyncEventSisoTest.java
testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/events/syncasync/SyncEventMimoTest.java
testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/events/syncasync/SyncEventSisoTest.java
testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/events/syncasync/TestEventBase.java [moved from testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/events/syncasync/BaseEventTest.java with 97% similarity]

index 07b6377..cf6efdd 100644 (file)
@@ -2,6 +2,7 @@
  * ============LICENSE_START=======================================================
  *  Copyright (C) 2016-2018 Ericsson. All rights reserved.
  *  Modifications Copyright (C) 2020 Bell Canada. All rights reserved.
+ *  Modifications Copyright (C) 2021 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -25,7 +26,7 @@ import java.io.File;
 import org.junit.After;
 import org.junit.Test;
 
-public class AsyncEventMimoTest extends BaseEventTest {
+public class AsyncEventMimoTest extends TestEventBase {
     private final String[] outFilePaths = {
         "target/examples/events/SampleDomain/EventsOutMulti0.json",
         "target/examples/events/SampleDomain/EventsOutMulti1.json",
index d7a4622..2da4f5b 100644 (file)
@@ -2,6 +2,7 @@
  * ============LICENSE_START=======================================================
  *  Copyright (C) 2016-2018 Ericsson. All rights reserved.
  *  Modifications Copyright (C) 2020 Bell Canada. All rights reserved.
+ *  Modifications Copyright (C) 2021 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -25,7 +26,7 @@ import java.io.File;
 import org.junit.After;
 import org.junit.Test;
 
-public class AsyncEventMisoTest extends BaseEventTest {
+public class AsyncEventMisoTest extends TestEventBase {
     private final String[] outFilePaths = {
         "target/examples/events/SampleDomain/EventsOutSingle.json"
     };
index c176b69..5e63b38 100644 (file)
@@ -2,6 +2,7 @@
  * ============LICENSE_START=======================================================
  *  Copyright (C) 2016-2018 Ericsson. All rights reserved.
  *  Modifications Copyright (C) 2020 Bell Canada. All rights reserved.
+ *  Modifications Copyright (C) 2021 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -25,7 +26,7 @@ import java.io.File;
 import org.junit.After;
 import org.junit.Test;
 
-public class AsyncEventSimoTest extends BaseEventTest {
+public class AsyncEventSimoTest extends TestEventBase {
     private final String[] outFilePaths = {
         "target/examples/events/SampleDomain/EventsOutMulti0.json",
         "target/examples/events/SampleDomain/EventsOutMulti1.json",
index 64b4b38..412d4be 100644 (file)
@@ -2,6 +2,7 @@
  * ============LICENSE_START=======================================================
  *  Copyright (C) 2016-2018 Ericsson. All rights reserved.
  *  Modifications Copyright (C) 2020 Bell Canada. All rights reserved.
+ *  Modifications Copyright (C) 2021 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -25,7 +26,7 @@ import java.io.File;
 import org.junit.After;
 import org.junit.Test;
 
-public class AsyncEventSisoTest extends BaseEventTest {
+public class AsyncEventSisoTest extends TestEventBase {
     private final String[] outFilePaths = {
         "target/examples/events/SampleDomain/EventsOutSingle.json"
     };
index 95e589b..4826560 100644 (file)
@@ -2,6 +2,7 @@
  * ============LICENSE_START=======================================================
  *  Copyright (C) 2016-2018 Ericsson. All rights reserved.
  *  Modifications Copyright (C) 2020 Bell Canada. All rights reserved.
+ *  Modifications Copyright (C) 2021 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -25,7 +26,7 @@ import java.io.File;
 import org.junit.After;
 import org.junit.Test;
 
-public class SyncEventMimoTest extends BaseEventTest {
+public class SyncEventMimoTest extends TestEventBase {
     private final String[] outFilePaths = {
         "target/examples/events/SampleDomain/EventsOutMulti0.json",
         "target/examples/events/SampleDomain/EventsOutMulti1.json",
index 1d536ce..596bcbc 100644 (file)
@@ -2,6 +2,7 @@
  * ============LICENSE_START=======================================================
  *  Copyright (C) 2016-2018 Ericsson. All rights reserved.
  *  Modifications Copyright (C) 2020 Bell Canada. All rights reserved.
+ *  Modifications Copyright (C) 2021 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -25,7 +26,7 @@ import java.io.File;
 import org.junit.After;
 import org.junit.Test;
 
-public class SyncEventSisoTest extends BaseEventTest {
+public class SyncEventSisoTest extends TestEventBase {
     private final String[] outFilePaths = {
         "target/examples/events/SampleDomain/EventsOutSingle.json"
     };
@@ -1,7 +1,7 @@
 /*-
  * ============LICENSE_START=======================================================
  *  Copyright (C) 2018 Ericsson. All rights reserved.
- *  Modifications Copyright (C) 2020 Nordix Foundation.
+ *  Modifications Copyright (C) 2020-2021 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -30,7 +30,7 @@ import org.onap.policy.apex.core.infrastructure.threading.ThreadUtilities;
 import org.onap.policy.apex.service.engine.main.ApexMain;
 import org.onap.policy.common.utils.resources.TextFileUtils;
 
-public class BaseEventTest {
+public class TestEventBase {
     private static final long TIME_OUT_IN_MS = 10000;
 
     private void waitForOutFiles(final String[] expectedFileNames, final long expectedFileSize) throws IOException {