Wrong assertion always true(compares same object)
Probably due to carelessness the same object is compared and the assertion is always true. Sonarlint raised this issue.
This commit is contained in:
parent
622cab39fc
commit
3b080a149a
@ -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