summaryrefslogtreecommitdiffstats
path: root/aai-core
diff options
context:
space:
mode:
authorKeong Lim <keong.lim@huawei.com>2018-11-01 17:08:45 +1100
committerKeong Lim <keong.lim@huawei.com>2019-02-20 11:09:03 +1100
commit69589faa4d3b1481bbd5c86f7ccb8c8bdeeb5916 (patch)
tree8b071d3b468d7f26247821a9bfe36c26842d1a4e /aai-core
parent3b80e8e049a23ba12a600d526af44408b4428fc1 (diff)
AAI-1523 checkstyle warnings for aai-core rest
Issue-ID: AAI-1523 re-indent code with spaces to clean up some checkstyle warnings for aai-core test rest (part of 24k lines of output) Change-Id: I610a40db3f9a79e31a210718bfe830c38809d9f3 Signed-off-by: Keong Lim <keong.lim@huawei.com>
Diffstat (limited to 'aai-core')
-rw-r--r--aai-core/src/test/java/org/onap/aai/rest/db/HttpEntryTest.java36
1 files changed, 18 insertions, 18 deletions
diff --git a/aai-core/src/test/java/org/onap/aai/rest/db/HttpEntryTest.java b/aai-core/src/test/java/org/onap/aai/rest/db/HttpEntryTest.java
index 80b4d51b..6e72a0f1 100644
--- a/aai-core/src/test/java/org/onap/aai/rest/db/HttpEntryTest.java
+++ b/aai-core/src/test/java/org/onap/aai/rest/db/HttpEntryTest.java
@@ -163,9 +163,9 @@ public class HttpEntryTest extends AAISetup {
@Test
public void test1PutOnPserver() throws UnsupportedEncodingException, AAIException {
- /*
- * TODO do the same with uri
- */
+ /*
+ * TODO do the same with uri
+ */
DBConnectionType type = DBConnectionType.REALTIME;
traversalHttpEntry.setHttpEntryProperties(schemaVersions.getDefaultVersion(), type);
Loader loader = traversalHttpEntry.getLoader();
@@ -196,7 +196,7 @@ public class HttpEntryTest extends AAISetup {
@Test
public void test3PutOnPInterface() {
- try {
+ try {
DBConnectionType type = DBConnectionType.REALTIME;
traversalHttpEntry.setHttpEntryProperties(schemaVersions.getDefaultVersion(), type);
Loader loader = traversalHttpEntry.getLoader();
@@ -207,10 +207,10 @@ public class HttpEntryTest extends AAISetup {
Response response = doRequest(traversalHttpEntry, loader, dbEngine, HttpMethod.PUT, uri, content);
dbEngine.commit();
assertEquals("Expected the p-interface to be created", 201, response.getStatus());
- } catch (UnsupportedEncodingException | AAIException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
+ } catch (UnsupportedEncodingException | AAIException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
}
@@ -251,9 +251,9 @@ public class HttpEntryTest extends AAISetup {
}
private int doDelete(String resourceVersion, String uri, String nodeType) throws UnsupportedEncodingException, AAIException {
- queryParameters.add("resource-version", resourceVersion);
- DBConnectionType type = DBConnectionType.REALTIME;
- traversalHttpEntry.setHttpEntryProperties(schemaVersions.getDefaultVersion(), type);
+ queryParameters.add("resource-version", resourceVersion);
+ DBConnectionType type = DBConnectionType.REALTIME;
+ traversalHttpEntry.setHttpEntryProperties(schemaVersions.getDefaultVersion(), type);
Loader loader = traversalHttpEntry.getLoader();
TransactionalGraphEngine dbEngine = traversalHttpEntry.getDbEngine();
@@ -296,7 +296,7 @@ public class HttpEntryTest extends AAISetup {
JsonObject jsonObj = new JsonParser().parse(msg).getAsJsonObject();
String resourceVersion = "";
if ( jsonObj.isJsonObject()) {
- resourceVersion = jsonObj.get("resource-version").getAsString();
+ resourceVersion = jsonObj.get("resource-version").getAsString();
}
assertEquals("Expected the pserver to be deleted", 204, doDelete(resourceVersion, "/cloud-infrastructure/pservers/pserver/junit-test1", "pserver"));
}
@@ -304,7 +304,7 @@ public class HttpEntryTest extends AAISetup {
@Test
public void test7DeleteOnPserverNoPinterface() throws UnsupportedEncodingException, AAIException {
-
+
DBConnectionType type = DBConnectionType.REALTIME;
traversalHttpEntry.setHttpEntryProperties(schemaVersions.getDefaultVersion(), type);
//HttpEntry httpEntry = new HttpEntry(Version.getLatest(), ModelType.MOXY, queryStyle, type);
@@ -319,7 +319,7 @@ public class HttpEntryTest extends AAISetup {
JsonObject jsonObj = new JsonParser().parse(msg).getAsJsonObject();
String resourceVersion = "";
if ( jsonObj.isJsonObject()) {
- resourceVersion = jsonObj.get("resource-version").getAsString();
+ resourceVersion = jsonObj.get("resource-version").getAsString();
}
assertEquals("Expected the pserver to be deleted", 204, doDelete(resourceVersion, "/cloud-infrastructure/pservers/pserver/junit-test2", "pserver"));
}
@@ -374,7 +374,7 @@ public class HttpEntryTest extends AAISetup {
public void notificationOnRelatedToTest() throws UnsupportedEncodingException, AAIException {
Loader ld = loaderFactory.createLoaderForVersion(ModelType.MOXY, schemaVersions.getDefaultVersion());
- UEBNotification uebNotification = Mockito.spy(new UEBNotification(ld, loaderFactory, schemaVersions));
+ UEBNotification uebNotification = Mockito.spy(new UEBNotification(ld, loaderFactory, schemaVersions));
DBConnectionType type = DBConnectionType.REALTIME;
traversalHttpEntry.setHttpEntryProperties(schemaVersions.getDefaultVersion(), type , uebNotification);
@@ -579,10 +579,10 @@ public class HttpEntryTest extends AAISetup {
@Test
public void setDepthTest() throws UnsupportedEncodingException, AAIException {
- System.setProperty("AJSC_HOME", ".");
- System.setProperty("BUNDLECONFIG_DIR", "src/main/test/resources");
+ System.setProperty("AJSC_HOME", ".");
+ System.setProperty("BUNDLECONFIG_DIR", "src/main/test/resources");
- String depthParam = AAIConfig.get("aai.rest.getall.depthparam");
+ String depthParam = AAIConfig.get("aai.rest.getall.depthparam");
DBConnectionType type = DBConnectionType.REALTIME;
traversalHttpEntry.setHttpEntryProperties(schemaVersions.getDefaultVersion(), type);
//HttpEntry httpEntry = new HttpEntry(Version.getLatest(), ModelType.MOXY, QueryStyle.TRAVERSAL, type);