summaryrefslogtreecommitdiffstats
path: root/controlloop/common/model-impl/aai/src
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2019-01-14 09:38:23 -0500
committerJim Hahn <jrh3@att.com>2019-01-14 10:07:07 -0500
commit45018c1970772037139134fcc2d69da360a03c66 (patch)
tree93342100485a51c29a0b5de91d2564198e0f9000 /controlloop/common/model-impl/aai/src
parent4b3d5ae4a7ae81dc337c81abc282d1e2fa7213c5 (diff)
Remove model-imp/rest checkstyle suppressions
Renamed "RESTManager" class to "RestManager". This did not require any changes to rules. Updated license data in pom. Change-Id: Ide59b99b8c5d939804b7540c71a686404195173c Issue-ID: POLICY-1141 Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'controlloop/common/model-impl/aai/src')
-rw-r--r--controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AaiManager.java14
-rw-r--r--controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AaiManagerTest.java10
2 files changed, 12 insertions, 12 deletions
diff --git a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AaiManager.java b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AaiManager.java
index b54981d22..96d606a01 100644
--- a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AaiManager.java
+++ b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AaiManager.java
@@ -2,7 +2,7 @@
* ============LICENSE_START=======================================================
* aai
* ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017, 2019 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.
@@ -27,8 +27,8 @@ import java.util.Map;
import java.util.UUID;
import org.onap.policy.aai.util.Serialization;
-import org.onap.policy.rest.RESTManager;
-import org.onap.policy.rest.RESTManager.Pair;
+import org.onap.policy.rest.RestManager;
+import org.onap.policy.rest.RestManager.Pair;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -49,14 +49,14 @@ public final class AaiManager {
/** The rest manager. */
// The REST manager used for processing REST calls for this AAI manager
- private final RESTManager restManager;
+ private final RestManager restManager;
/**
* Constructor, create the AAI manager with the specified REST manager.
*
* @param restManager the rest manager to use for REST calls
*/
- public AaiManager(final RESTManager restManager) {
+ public AaiManager(final RestManager restManager) {
this.restManager = restManager;
}
@@ -76,12 +76,12 @@ public final class AaiManager {
url = url + "/aai/search/named-query";
- logger.debug("RESTManager.post before");
+ logger.debug("RestManager.post before");
String requestJson = Serialization.gsonPretty.toJson(request);
netLogger.info("[OUT|{}|{}|]{}{}", "AAI", url, LINE_SEPARATOR, requestJson);
Pair<Integer, String> httpDetails =
restManager.post(url, username, password, headers, "application/json", requestJson);
- logger.debug("RESTManager.post after");
+ logger.debug("RestManager.post after");
if (httpDetails == null) {
logger.info("AAI POST Null Response to {}", url);
diff --git a/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AaiManagerTest.java b/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AaiManagerTest.java
index 32a029560..3717740d5 100644
--- a/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AaiManagerTest.java
+++ b/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AaiManagerTest.java
@@ -2,7 +2,7 @@
* ============LICENSE_START=======================================================
* aai
* ================================================================================
- * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2019 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.
@@ -37,11 +37,11 @@ import java.util.UUID;
import org.junit.Before;
import org.junit.Test;
import org.onap.policy.aai.util.Serialization;
-import org.onap.policy.rest.RESTManager;
-import org.onap.policy.rest.RESTManager.Pair;
+import org.onap.policy.rest.RestManager;
+import org.onap.policy.rest.RestManager.Pair;
public class AaiManagerTest {
- RESTManager restManagerMock;
+ RestManager restManagerMock;
UUID aaiNqRequestUuid = UUID.randomUUID();
Pair<Integer, String> httpResponseOk;
Pair<Integer, String> httpResponseErr0;
@@ -53,7 +53,7 @@ public class AaiManagerTest {
*/
@Before
public void beforeTestAaiManager() {
- restManagerMock = mock(RESTManager.class);
+ restManagerMock = mock(RestManager.class);
Map<String, String> expectedHeaders = new HashMap<>();
expectedHeaders.put("X-FromAppId", "POLICY");