Skip to content

Commit

Permalink
Switched params for tests, so expected is the real expected
Browse files Browse the repository at this point in the history
Signed-off-by: Schauer-Köckeis <[email protected]>
  • Loading branch information
Schauer-Köckeis committed Sep 6, 2024
1 parent ed10dc5 commit 3e2998e
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@ public void getVisibleAdminRequiredTeams() {
JsonObject body = parseJsonObject(response);
Assert.assertTrue(body.getBoolean("required"));
JsonArray teams = body.getJsonArray("teams");
Assert.assertEquals(teams.size(), 2);
Assert.assertEquals(teams.getFirst().asJsonObject().getString("uuid"), this.team.getUuid().toString());
Assert.assertEquals(teams.get(1).asJsonObject().getString("uuid"), userNotPartof.getUuid().toString());
Assert.assertEquals(2, teams.size());
Assert.assertEquals(this.team.getUuid().toString(), teams.getFirst().asJsonObject().getString("uuid"));
Assert.assertEquals(userNotPartof.getUuid().toString(), teams.get(1).asJsonObject().getString("uuid"));
}

@Test
Expand All @@ -258,9 +258,9 @@ public void getVisibleAdminNotRequiredTeams() {
JsonObject body = parseJsonObject(response);
Assert.assertFalse(body.getBoolean("required"));
JsonArray teams = body.getJsonArray("teams");
Assert.assertEquals(teams.size(), 2);
Assert.assertEquals(teams.getFirst().asJsonObject().getString("uuid"), this.team.getUuid().toString());
Assert.assertEquals(teams.get(1).asJsonObject().getString("uuid"), userNotPartof.getUuid().toString());
Assert.assertEquals(2, teams.size());
Assert.assertEquals(this.team.getUuid().toString(), teams.getFirst().asJsonObject().getString("uuid"));
Assert.assertEquals(userNotPartof.getUuid().toString(), teams.get(1).asJsonObject().getString("uuid"));
}

@Test
Expand All @@ -275,8 +275,8 @@ public void getVisibleNotAdminRequiredTeams() {
JsonObject body = parseJsonObject(response);
Assert.assertTrue(body.getBoolean("required"));
JsonArray teams = body.getJsonArray("teams");
Assert.assertEquals(teams.size(), 1);
Assert.assertEquals(teams.getFirst().asJsonObject().getString("uuid"), this.team.getUuid().toString());
Assert.assertEquals(1, teams.size());
Assert.assertEquals(this.team.getUuid().toString(), teams.getFirst().asJsonObject().getString("uuid"));
}

@Test
Expand All @@ -290,8 +290,8 @@ public void getVisibleNotAdminNotRequiredTeams() {
JsonObject body = parseJsonObject(response);
Assert.assertFalse(body.getBoolean("required"));
JsonArray teams = body.getJsonArray("teams");
Assert.assertEquals(teams.size(), 1);
Assert.assertEquals(teams.getFirst().asJsonObject().getString("uuid"), this.team.getUuid().toString());
Assert.assertEquals(1, teams.size());
Assert.assertEquals(this.team.getUuid().toString(), teams.getFirst().asJsonObject().getString("uuid"));
}

@Test
Expand Down

0 comments on commit 3e2998e

Please sign in to comment.