Merge pull request #1064 from AndreicaRadu/patch-1
Wrong assertion always true(compares same object)
This commit is contained in:
commit
1c5110dab6
@ -383,7 +383,7 @@ public class AbilityBotTest {
|
|||||||
Map<String, Long> expectedUserIds = ImmutableMap.of(changedUser.getUserName(), changedUser.getId());
|
Map<String, Long> expectedUserIds = ImmutableMap.of(changedUser.getUserName(), changedUser.getId());
|
||||||
Map<Long, User> expectedUsers = ImmutableMap.of(changedUser.getId(), changedUser);
|
Map<Long, User> expectedUsers = ImmutableMap.of(changedUser.getId(), changedUser);
|
||||||
assertEquals(bot.userIds(), expectedUserIds, "User was not properly edited");
|
assertEquals(bot.userIds(), expectedUserIds, "User was not properly edited");
|
||||||
assertEquals(expectedUsers, expectedUsers, "User was not properly edited");
|
assertEquals(bot.users(), expectedUsers, "User was not properly edited");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
Reference in New Issue
Block a user