1

test fix + spotbugs dead assignment

This commit is contained in:
Christoph
2020-04-08 20:52:22 +02:00
parent 482dde7960
commit 70f3ffdc84
2 changed files with 2 additions and 3 deletions

View File

@ -53,7 +53,6 @@ public class SearchAndInviteController {
log.info("GET to /searchPage\n");
Account account = new Account(token);
User user = new User(account);
model.addAttribute("account", account);
model.addAttribute("gruppen", Collections.emptyList()); // TODO: verschönern

View File

@ -91,8 +91,8 @@ class APIControllerTest {
assertThat(apiController.updateGroups(0L).getGroupList()).hasSize(2);
assertThat(apiController.updateGroups(4L).getGroupList()).hasSize(1);
assertThat(apiController.updateGroups(6L).getGroupList()).hasSize(1);
assertThat(apiController.updateGroups(7L).getGroupList()).hasSize(0);
assertThat(apiController.updateGroups(0L).getStatus()).isEqualTo(7);
assertThat(apiController.updateGroups(7L).getGroupList()).hasSize(1);
assertThat(apiController.updateGroups(0L).getStatus()).isEqualTo(9);
}
@Test