diff --git a/src/functionalTest/java/uk/gov/hmcts/reform/pip/account/management/controllers/AuditCreationTest.java b/src/functionalTest/java/uk/gov/hmcts/reform/pip/account/management/controllers/AuditCreationTest.java index 075f7b79..b5a89733 100644 --- a/src/functionalTest/java/uk/gov/hmcts/reform/pip/account/management/controllers/AuditCreationTest.java +++ b/src/functionalTest/java/uk/gov/hmcts/reform/pip/account/management/controllers/AuditCreationTest.java @@ -51,7 +51,9 @@ public void startUp() { } @AfterAll - public void teardown() { doDeleteRequest(TESTING_SUPPORT_AUDIT_URL + TEST_EMAIL_PREFIX, bearer); } + public void teardown() { + doDeleteRequest(TESTING_SUPPORT_AUDIT_URL + TEST_EMAIL_PREFIX, bearer); + } private AuditLog createAuditLog() { diff --git a/src/integrationTest/java/uk/gov/hmcts/reform/pip/account/management/controllers/TestingSupportApiTest.java b/src/integrationTest/java/uk/gov/hmcts/reform/pip/account/management/controllers/TestingSupportApiTest.java index d2bbc317..3232b465 100644 --- a/src/integrationTest/java/uk/gov/hmcts/reform/pip/account/management/controllers/TestingSupportApiTest.java +++ b/src/integrationTest/java/uk/gov/hmcts/reform/pip/account/management/controllers/TestingSupportApiTest.java @@ -57,7 +57,8 @@ @ActiveProfiles("integration") @AutoConfigureEmbeddedDatabase(type = AutoConfigureEmbeddedDatabase.DatabaseType.POSTGRES) @WithMockUser(username = "admin", authorities = {"APPROLE_api.request.admin"}) -@SuppressWarnings({"PMD.TooManyMethods", "PMD.ExcessiveImports", "PMD.UnitTestShouldIncludeAssert"}) +@SuppressWarnings({"PMD.TooManyMethods", "PMD.ExcessiveImports", "PMD.UnitTestShouldIncludeAssert", + "PMD.CouplingBetweenObjects"}) class TestingSupportApiTest extends IntegrationTestBase { private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper(); @@ -381,6 +382,7 @@ private MediaApplication createApplication() throws Exception { } } + @SuppressWarnings("PMD.SignatureDeclareThrowsException") private AuditLog createAuditLog() throws Exception { AuditLog auditLog = new AuditLog(); auditLog.setId(USER_ID);