Skip to content

Commit

Permalink
Fix checkstyle and pmd fails
Browse files Browse the repository at this point in the history
  • Loading branch information
NatashaAlker committed Jan 6, 2025
1 parent a08bf94 commit 8ebaf69
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 8ebaf69

Please sign in to comment.