Skip to content

Commit

Permalink
final
Browse files Browse the repository at this point in the history
  • Loading branch information
ikhoon committed Aug 16, 2024
1 parent 53aadc1 commit adeb8f3
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ void userRoleWithLoginUser() {
createProject(adminClient, "trustin");
createProject(adminClient, "hyangtack");

Map<String, ProjectDto> projects = getProjects(normalClient);
final Map<String, ProjectDto> projects = getProjects(normalClient);
assertThat(projects).hasSize(2);
assertThat(projects).containsOnlyKeys("trustin", "hyangtack");
assertThat(projects.values().stream().map(ProjectDto::userRole))
Expand All @@ -275,7 +275,7 @@ void userRoleWithLoginUser() {
.execute();
assertThat(aRes.status()).isEqualTo(HttpStatus.OK);
await().untilAsserted(() -> {
Map<String, ProjectDto> projects0 = getProjects(normalClient);
final Map<String, ProjectDto> projects0 = getProjects(normalClient);
assertThat(projects0.get("trustin").userRole()).isEqualTo(ProjectRole.MEMBER);
assertThat(projects0.get("hyangtack").userRole()).isEqualTo(ProjectRole.GUEST);
});
Expand All @@ -287,7 +287,7 @@ void userRoleWithLoginUser() {
.execute();
assertThat(aRes.status()).isEqualTo(HttpStatus.OK);
await().untilAsserted(() -> {
Map<String, ProjectDto> projects0 = getProjects(normalClient);
final Map<String, ProjectDto> projects0 = getProjects(normalClient);
assertThat(projects0.get("trustin").userRole()).isEqualTo(ProjectRole.MEMBER);
assertThat(projects0.get("hyangtack").userRole()).isEqualTo(ProjectRole.OWNER);
});
Expand All @@ -311,7 +311,7 @@ void userRoleWithToken() {
.auth(AuthToken.ofOAuth2(token))
.build()
.blocking();
Map<String, ProjectDto> projects = getProjects(tokenClient);
final Map<String, ProjectDto> projects = getProjects(tokenClient);
assertThat(projects).hasSize(2);
assertThat(projects).containsOnlyKeys("trustin", "hyangtack");
assertThat(projects.values().stream().map(ProjectDto::userRole))
Expand All @@ -324,7 +324,7 @@ void userRoleWithToken() {
.execute();
assertThat(aRes.status()).isEqualTo(HttpStatus.OK);
await().untilAsserted(() -> {
Map<String, ProjectDto> projects0 = getProjects(tokenClient);
final Map<String, ProjectDto> projects0 = getProjects(tokenClient);
assertThat(projects0.get("trustin").userRole()).isEqualTo(ProjectRole.MEMBER);
assertThat(projects0.get("hyangtack").userRole()).isEqualTo(ProjectRole.GUEST);
});
Expand All @@ -335,7 +335,7 @@ void userRoleWithToken() {
.execute();
assertThat(aRes.status()).isEqualTo(HttpStatus.OK);
await().untilAsserted(() -> {
Map<String, ProjectDto> projects0 = getProjects(tokenClient);
final Map<String, ProjectDto> projects0 = getProjects(tokenClient);
assertThat(projects0.get("trustin").userRole()).isEqualTo(ProjectRole.MEMBER);
assertThat(projects0.get("hyangtack").userRole()).isEqualTo(ProjectRole.OWNER);
});
Expand Down

0 comments on commit adeb8f3

Please sign in to comment.