diff --git a/e2e-test/java/org/alfresco/rest/audit/DeleteAuditCoreTests.java b/e2e-test/java/org/alfresco/rest/audit/DeleteAuditCoreTests.java index 493e1b6a7..5d0a4e94f 100644 --- a/e2e-test/java/org/alfresco/rest/audit/DeleteAuditCoreTests.java +++ b/e2e-test/java/org/alfresco/rest/audit/DeleteAuditCoreTests.java @@ -48,10 +48,12 @@ public class DeleteAuditCoreTests extends AuditTest String secondId = restAuditEntryCollection.getEntries().get(restAuditEntryCollection.getPagination().getCount() - 1) .onModel().getId(); - restClient.authenticateUser(userModel).withParams("where=(id BETWEEN ("+firstId+","+secondId+"))").withCoreAPI().usingAudit().deleteAuditEntriesForAnAuditApplication(restAuditAppModel.getId()); + restClient.authenticateUser(userModel).withParams("where=(id BETWEEN (" + firstId + "," + secondId + "))").withCoreAPI() + .usingAudit().deleteAuditEntriesForAnAuditApplication(restAuditAppModel.getId()); restClient.assertStatusCodeIs(HttpStatus.FORBIDDEN); - - restClient.authenticateUser(adminUser).withParams("where=(id BETWEEN ("+firstId+","+secondId+"))").withCoreAPI().usingAudit().deleteAuditEntriesForAnAuditApplication(restAuditAppModel.getId()); + + restClient.authenticateUser(adminUser).withParams("where=(id BETWEEN (" + firstId + "," + secondId + "))").withCoreAPI() + .usingAudit().deleteAuditEntriesForAnAuditApplication(restAuditAppModel.getId()); restClient.assertStatusCodeIs(HttpStatus.NO_CONTENT); restAuditEntryCollection = restClient.authenticateUser(adminUser).withParams("where=(id BETWEEN ("+firstId+","+secondId+"))").withCoreAPI().usingAudit()