diff --git a/server/src/test/java/com/linecorp/centraldogma/server/internal/api/ProjectServiceV1ListProjectTest.java b/server/src/test/java/com/linecorp/centraldogma/server/internal/api/ProjectServiceV1ListProjectTest.java index 4aa97e41f6..8b47852de5 100644 --- a/server/src/test/java/com/linecorp/centraldogma/server/internal/api/ProjectServiceV1ListProjectTest.java +++ b/server/src/test/java/com/linecorp/centraldogma/server/internal/api/ProjectServiceV1ListProjectTest.java @@ -261,7 +261,7 @@ void userRoleWithLoginUser() { createProject(adminClient, "trustin"); createProject(adminClient, "hyangtack"); - Map projects = getProjects(normalClient); + final Map projects = getProjects(normalClient); assertThat(projects).hasSize(2); assertThat(projects).containsOnlyKeys("trustin", "hyangtack"); assertThat(projects.values().stream().map(ProjectDto::userRole)) @@ -275,7 +275,7 @@ void userRoleWithLoginUser() { .execute(); assertThat(aRes.status()).isEqualTo(HttpStatus.OK); await().untilAsserted(() -> { - Map projects0 = getProjects(normalClient); + final Map projects0 = getProjects(normalClient); assertThat(projects0.get("trustin").userRole()).isEqualTo(ProjectRole.MEMBER); assertThat(projects0.get("hyangtack").userRole()).isEqualTo(ProjectRole.GUEST); }); @@ -287,7 +287,7 @@ void userRoleWithLoginUser() { .execute(); assertThat(aRes.status()).isEqualTo(HttpStatus.OK); await().untilAsserted(() -> { - Map projects0 = getProjects(normalClient); + final Map projects0 = getProjects(normalClient); assertThat(projects0.get("trustin").userRole()).isEqualTo(ProjectRole.MEMBER); assertThat(projects0.get("hyangtack").userRole()).isEqualTo(ProjectRole.OWNER); }); @@ -311,7 +311,7 @@ void userRoleWithToken() { .auth(AuthToken.ofOAuth2(token)) .build() .blocking(); - Map projects = getProjects(tokenClient); + final Map projects = getProjects(tokenClient); assertThat(projects).hasSize(2); assertThat(projects).containsOnlyKeys("trustin", "hyangtack"); assertThat(projects.values().stream().map(ProjectDto::userRole)) @@ -324,7 +324,7 @@ void userRoleWithToken() { .execute(); assertThat(aRes.status()).isEqualTo(HttpStatus.OK); await().untilAsserted(() -> { - Map projects0 = getProjects(tokenClient); + final Map projects0 = getProjects(tokenClient); assertThat(projects0.get("trustin").userRole()).isEqualTo(ProjectRole.MEMBER); assertThat(projects0.get("hyangtack").userRole()).isEqualTo(ProjectRole.GUEST); }); @@ -335,7 +335,7 @@ void userRoleWithToken() { .execute(); assertThat(aRes.status()).isEqualTo(HttpStatus.OK); await().untilAsserted(() -> { - Map projects0 = getProjects(tokenClient); + final Map projects0 = getProjects(tokenClient); assertThat(projects0.get("trustin").userRole()).isEqualTo(ProjectRole.MEMBER); assertThat(projects0.get("hyangtack").userRole()).isEqualTo(ProjectRole.OWNER); });