aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2020-03-25 16:36:25 +0000
committerGerrit Code Review <gerrit@onap.org>2020-03-25 16:36:25 +0000
commitdb73daea2cb11db7d527d26aac02a1fd23ba7b79 (patch)
tree219d352bf7c5ba5a6e4702bba2fb9ac780de8129
parente9f357b2f64dc1cf99df2d9662f9292e4c047dd2 (diff)
parent9ed5d5f39ba97fbea2e6a640febb3c818deab8e7 (diff)
Merge "Cleanup eclipse warnings"
-rw-r--r--models-interactions/model-actors/actorServiceProvider/src/test/java/org/onap/policy/controlloop/actorserviceprovider/parameters/ParameterValidationRuntimeExceptionTest.java3
-rw-r--r--models-interactions/model-impl/so/src/test/java/org/onap/policy/so/DemoTest.java76
-rw-r--r--models-sim/models-sim-dmaap/src/test/java/org/onap/policy/models/sim/dmaap/DmaapSimXxxExceptionTest.java4
-rw-r--r--models-tosca/src/test/java/org/onap/policy/models/tosca/legacy/concepts/LegacyOperationalPolicyTest.java1
4 files changed, 32 insertions, 52 deletions
diff --git a/models-interactions/model-actors/actorServiceProvider/src/test/java/org/onap/policy/controlloop/actorserviceprovider/parameters/ParameterValidationRuntimeExceptionTest.java b/models-interactions/model-actors/actorServiceProvider/src/test/java/org/onap/policy/controlloop/actorserviceprovider/parameters/ParameterValidationRuntimeExceptionTest.java
index 9879f604f..328e4facb 100644
--- a/models-interactions/model-actors/actorServiceProvider/src/test/java/org/onap/policy/controlloop/actorserviceprovider/parameters/ParameterValidationRuntimeExceptionTest.java
+++ b/models-interactions/model-actors/actorServiceProvider/src/test/java/org/onap/policy/controlloop/actorserviceprovider/parameters/ParameterValidationRuntimeExceptionTest.java
@@ -29,7 +29,6 @@ import org.junit.Test;
import org.onap.policy.common.parameters.ObjectValidationResult;
import org.onap.policy.common.parameters.ValidationResult;
import org.onap.policy.common.parameters.ValidationStatus;
-import org.onap.policy.controlloop.actorserviceprovider.parameters.ParameterValidationRuntimeException;
public class ParameterValidationRuntimeExceptionTest {
@@ -68,7 +67,7 @@ public class ParameterValidationRuntimeExceptionTest {
@Test
public void testParameterValidationExceptionValidationResultStringThrowable() {
ParameterValidationRuntimeException ex =
- new ParameterValidationRuntimeException(THE_MESSAGE, EXPECTED_EXCEPTION, result);
+ new ParameterValidationRuntimeException(THE_MESSAGE, EXPECTED_EXCEPTION, result);
assertSame(result, ex.getResult());
assertEquals(THE_MESSAGE, ex.getMessage());
assertEquals(EXPECTED_EXCEPTION, ex.getCause());
diff --git a/models-interactions/model-impl/so/src/test/java/org/onap/policy/so/DemoTest.java b/models-interactions/model-impl/so/src/test/java/org/onap/policy/so/DemoTest.java
index daa6c865a..d496455eb 100644
--- a/models-interactions/model-impl/so/src/test/java/org/onap/policy/so/DemoTest.java
+++ b/models-interactions/model-impl/so/src/test/java/org/onap/policy/so/DemoTest.java
@@ -1,8 +1,8 @@
/*-
* ============LICENSE_START=======================================================
- * mso
+ * ONAP
* ================================================================================
- * Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2020 AT&T Intellectual Property. All rights reserved.
* Modifications Copyright (C) 2019 Nordix Foundation.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -25,14 +25,6 @@ import java.util.HashMap;
import java.util.Map;
import org.junit.Test;
-import org.onap.policy.so.SoCloudConfiguration;
-import org.onap.policy.so.SoModelInfo;
-import org.onap.policy.so.SoRelatedInstance;
-import org.onap.policy.so.SoRelatedInstanceListElement;
-import org.onap.policy.so.SoRequest;
-import org.onap.policy.so.SoRequestDetails;
-import org.onap.policy.so.SoRequestInfo;
-import org.onap.policy.so.SoRequestParameters;
import org.onap.policy.so.util.Serialization;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -63,41 +55,35 @@ public class DemoTest {
request.getRequestDetails().getRequestInfo().setSource("VID");
request.getRequestDetails().getRequestInfo().setSuppressRollback(true);
- SoRelatedInstanceListElement relatedInstanceListElement1 =
- new SoRelatedInstanceListElement();
- SoRelatedInstanceListElement relatedInstanceListElement2 =
- new SoRelatedInstanceListElement();
- SoRelatedInstanceListElement relatedInstanceListElement3 =
- new SoRelatedInstanceListElement();
+ SoRelatedInstanceListElement relatedInstanceListElement1 = new SoRelatedInstanceListElement();
+ SoRelatedInstanceListElement relatedInstanceListElement2 = new SoRelatedInstanceListElement();
+ SoRelatedInstanceListElement relatedInstanceListElement3 = new SoRelatedInstanceListElement();
relatedInstanceListElement1.setRelatedInstance(new SoRelatedInstance());
relatedInstanceListElement2.setRelatedInstance(new SoRelatedInstance());
relatedInstanceListElement3.setRelatedInstance(new SoRelatedInstance());
- relatedInstanceListElement1.getRelatedInstance().setInstanceId(
- "17ef4658-bd1f-4ef0-9ca0-ea76e2bf122c");
- relatedInstanceListElement1.getRelatedInstance().setInstanceName(
- "SOTESTVOL103a-vSAMP12_base_module-0_vol");
+ relatedInstanceListElement1.getRelatedInstance().setInstanceId("17ef4658-bd1f-4ef0-9ca0-ea76e2bf122c");
+ relatedInstanceListElement1.getRelatedInstance().setInstanceName("SOTESTVOL103a-vSAMP12_base_module-0_vol");
relatedInstanceListElement1.getRelatedInstance().setModelInfo(new SoModelInfo());
relatedInstanceListElement1.getRelatedInstance().getModelInfo().setModelType("volumeGroup");
relatedInstanceListElement2.getRelatedInstance().setInstanceId("serviceInstanceId");
relatedInstanceListElement2.getRelatedInstance().setModelInfo(new SoModelInfo());
relatedInstanceListElement2.getRelatedInstance().getModelInfo().setModelType("service");
- relatedInstanceListElement2.getRelatedInstance().getModelInfo().setModelInvariantId(
- "ff3514e3-5a33-55df-13ab-12abad84e7ff");
- relatedInstanceListElement2.getRelatedInstance().getModelInfo().setModelVersionId(
- "fe6985cd-ea33-3346-ac12-ab121484a3fe");
- relatedInstanceListElement2.getRelatedInstance().getModelInfo().setModelName(
- "parent service model name");
+ relatedInstanceListElement2.getRelatedInstance().getModelInfo()
+ .setModelInvariantId("ff3514e3-5a33-55df-13ab-12abad84e7ff");
+ relatedInstanceListElement2.getRelatedInstance().getModelInfo()
+ .setModelVersionId("fe6985cd-ea33-3346-ac12-ab121484a3fe");
+ relatedInstanceListElement2.getRelatedInstance().getModelInfo().setModelName("parent service model name");
relatedInstanceListElement2.getRelatedInstance().getModelInfo().setModelVersion("1.0");
relatedInstanceListElement3.getRelatedInstance().setInstanceId("vnfInstanceId");
relatedInstanceListElement3.getRelatedInstance().setModelInfo(new SoModelInfo());
relatedInstanceListElement3.getRelatedInstance().getModelInfo().setModelType("vnf");
- relatedInstanceListElement3.getRelatedInstance().getModelInfo().setModelInvariantId(
- "ff5256d1-5a33-55df-13ab-12abad84e7ff");
- relatedInstanceListElement3.getRelatedInstance().getModelInfo().setModelVersionId(
- "fe6478e4-ea33-3346-ac12-ab121484a3fe");
+ relatedInstanceListElement3.getRelatedInstance().getModelInfo()
+ .setModelInvariantId("ff5256d1-5a33-55df-13ab-12abad84e7ff");
+ relatedInstanceListElement3.getRelatedInstance().getModelInfo()
+ .setModelVersionId("fe6478e4-ea33-3346-ac12-ab121484a3fe");
relatedInstanceListElement3.getRelatedInstance().getModelInfo().setModelName("vSAMP12");
relatedInstanceListElement3.getRelatedInstance().getModelInfo().setModelVersion("1.0");
relatedInstanceListElement3.getRelatedInstance().getModelInfo().setModelCustomizationName("vSAMP12 1");
@@ -142,15 +128,13 @@ public class DemoTest {
request.getRequestDetails().getCloudConfiguration().setLcpCloudRegionId("DFW");
request.getRequestDetails().getCloudConfiguration().setTenantId("1015548");
- request.getRequestDetails().getRequestInfo().setInstanceName(
- "Vfmodule_Ete_Name1eScaling63928f-ccdc-4b34-bdef-9bf64109026e");
+ request.getRequestDetails().getRequestInfo()
+ .setInstanceName("Vfmodule_Ete_Name1eScaling63928f-ccdc-4b34-bdef-9bf64109026e");
request.getRequestDetails().getRequestInfo().setSource("POLICY");
request.getRequestDetails().getRequestInfo().setSuppressRollback(false);
- SoRelatedInstanceListElement relatedInstanceListElement1 =
- new SoRelatedInstanceListElement();
- SoRelatedInstanceListElement relatedInstanceListElement2 =
- new SoRelatedInstanceListElement();
+ SoRelatedInstanceListElement relatedInstanceListElement1 = new SoRelatedInstanceListElement();
+ SoRelatedInstanceListElement relatedInstanceListElement2 = new SoRelatedInstanceListElement();
relatedInstanceListElement1.setRelatedInstance(new SoRelatedInstance());
relatedInstanceListElement2.setRelatedInstance(new SoRelatedInstance());
@@ -158,10 +142,10 @@ public class DemoTest {
relatedInstanceListElement1.getRelatedInstance().setInstanceId(serviceInstanceId);
relatedInstanceListElement1.getRelatedInstance().setModelInfo(new SoModelInfo());
relatedInstanceListElement1.getRelatedInstance().getModelInfo().setModelType("service");
- relatedInstanceListElement1.getRelatedInstance().getModelInfo().setModelInvariantId(
- "24329a0c-1d57-4210-b1af-a65df64e9d59");
- relatedInstanceListElement1.getRelatedInstance().getModelInfo().setModelVersionId(
- "ac642881-8e7e-4217-bd64-16ad41c42e30");
+ relatedInstanceListElement1.getRelatedInstance().getModelInfo()
+ .setModelInvariantId("24329a0c-1d57-4210-b1af-a65df64e9d59");
+ relatedInstanceListElement1.getRelatedInstance().getModelInfo()
+ .setModelVersionId("ac642881-8e7e-4217-bd64-16ad41c42e30");
relatedInstanceListElement1.getRelatedInstance().getModelInfo().setModelName("5116d67e-0b4f-46bf-a46f");
relatedInstanceListElement1.getRelatedInstance().getModelInfo().setModelVersion("2.0");
@@ -169,14 +153,14 @@ public class DemoTest {
relatedInstanceListElement2.getRelatedInstance().setInstanceId(vnfInstanceId);
relatedInstanceListElement2.getRelatedInstance().setModelInfo(new SoModelInfo());
relatedInstanceListElement2.getRelatedInstance().getModelInfo().setModelType("vnf");
- relatedInstanceListElement2.getRelatedInstance().getModelInfo().setModelInvariantId(
- "09fd971e-db5f-475d-997c-cf6704b6b8fe");
- relatedInstanceListElement2.getRelatedInstance().getModelInfo().setModelVersionId(
- "152ed917-6dcc-46ee-bf8a-a775c5aa5a74");
+ relatedInstanceListElement2.getRelatedInstance().getModelInfo()
+ .setModelInvariantId("09fd971e-db5f-475d-997c-cf6704b6b8fe");
+ relatedInstanceListElement2.getRelatedInstance().getModelInfo()
+ .setModelVersionId("152ed917-6dcc-46ee-bf8a-a775c5aa5a74");
relatedInstanceListElement2.getRelatedInstance().getModelInfo().setModelName("9e4c31d2-4b25-4d9e-9fb4");
relatedInstanceListElement2.getRelatedInstance().getModelInfo().setModelVersion("2.0");
- relatedInstanceListElement2.getRelatedInstance().getModelInfo().setModelCustomizationName(
- "0d9e0d9d-3527-49f4-b3cb 2");
+ relatedInstanceListElement2.getRelatedInstance().getModelInfo()
+ .setModelCustomizationName("0d9e0d9d-3527-49f4-b3cb 2");
request.getRequestDetails().getRelatedInstanceList().add(relatedInstanceListElement1);
request.getRequestDetails().getRelatedInstanceList().add(relatedInstanceListElement2);
diff --git a/models-sim/models-sim-dmaap/src/test/java/org/onap/policy/models/sim/dmaap/DmaapSimXxxExceptionTest.java b/models-sim/models-sim-dmaap/src/test/java/org/onap/policy/models/sim/dmaap/DmaapSimXxxExceptionTest.java
index 4e37a5e36..ac72e5ee8 100644
--- a/models-sim/models-sim-dmaap/src/test/java/org/onap/policy/models/sim/dmaap/DmaapSimXxxExceptionTest.java
+++ b/models-sim/models-sim-dmaap/src/test/java/org/onap/policy/models/sim/dmaap/DmaapSimXxxExceptionTest.java
@@ -1,6 +1,6 @@
/*-
* ============LICENSE_START=======================================================
- * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2019-2020 AT&T Intellectual Property. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -22,8 +22,6 @@ import static org.junit.Assert.assertEquals;
import org.junit.Test;
import org.onap.policy.common.utils.test.ExceptionsTester;
-import org.onap.policy.models.sim.dmaap.DmaapSimException;
-import org.onap.policy.models.sim.dmaap.DmaapSimRuntimeException;
public class DmaapSimXxxExceptionTest {
diff --git a/models-tosca/src/test/java/org/onap/policy/models/tosca/legacy/concepts/LegacyOperationalPolicyTest.java b/models-tosca/src/test/java/org/onap/policy/models/tosca/legacy/concepts/LegacyOperationalPolicyTest.java
index 43ad191cc..6d3b3d101 100644
--- a/models-tosca/src/test/java/org/onap/policy/models/tosca/legacy/concepts/LegacyOperationalPolicyTest.java
+++ b/models-tosca/src/test/java/org/onap/policy/models/tosca/legacy/concepts/LegacyOperationalPolicyTest.java
@@ -25,7 +25,6 @@ import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
-import org.onap.policy.models.tosca.legacy.concepts.LegacyOperationalPolicy;
public class LegacyOperationalPolicyTest {