From 038d9695a7a15a5b9f3a4faa3c1f37edfb8a84d9 Mon Sep 17 00:00:00 2001 From: Andrei Forascu Date: Mon, 24 Jul 2017 11:23:22 +0300 Subject: [PATCH] REPO-2644 - REST API: Delete Application Audit Entries - add TAS-level sanity test: - minor code formatting --- .../org/alfresco/rest/audit/GetAuditCoreTests.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/e2e-test/java/org/alfresco/rest/audit/GetAuditCoreTests.java b/e2e-test/java/org/alfresco/rest/audit/GetAuditCoreTests.java index 97b9cc654..724f58bc0 100644 --- a/e2e-test/java/org/alfresco/rest/audit/GetAuditCoreTests.java +++ b/e2e-test/java/org/alfresco/rest/audit/GetAuditCoreTests.java @@ -186,16 +186,16 @@ public class GetAuditCoreTests extends AuditTest int skipCount = 0; do { - restAuditEntryCollection = restClient.authenticateUser(adminUser).withParams("maxItems=1&skipCount="+skipCount) - .withCoreAPI().usingAudit().listAuditEntriesForAnAuditApplication(restAuditAppModel.getId()); + restAuditEntryCollection = restClient.authenticateUser(adminUser).withParams("maxItems=1&skipCount=" + skipCount).withCoreAPI().usingAudit() + .listAuditEntriesForAnAuditApplication(restAuditAppModel.getId()); restClient.assertStatusCodeIs(HttpStatus.OK); assertEquals(restAuditEntryCollection.getEntries().size(), 1); assertEquals(restAuditEntryCollection.getPagination().getCount(), 1); - assertEquals(restAuditEntryCollection.getPagination().getSkipCount(),skipCount); - assertEquals(restAuditEntryCollection.getEntries().get(0).onModel().getId(),Long.toString(firstId)); + assertEquals(restAuditEntryCollection.getPagination().getSkipCount(), skipCount); + assertEquals(restAuditEntryCollection.getEntries().get(0).onModel().getId(), Long.toString(firstId)); skipCount++; firstId++; - }while(firstId<=lastId); + } while (firstId <= lastId); } @Test(groups = { TestGroup.REST_API, TestGroup.AUDIT, TestGroup.CORE })