Fix test compilation issue.
This commit is contained in:
parent
7681a892b1
commit
7dfdf45c6e
1 changed files with 3 additions and 3 deletions
|
|
@ -29,7 +29,7 @@ class NotificationDataTest {
|
||||||
senderDisplayName = null,
|
senderDisplayName = null,
|
||||||
senderIsNameAmbiguous = false,
|
senderIsNameAmbiguous = false,
|
||||||
)
|
)
|
||||||
assertThat(sut.getSenderName(A_USER_ID)).isEqualTo("@alice:server.org")
|
assertThat(sut.getDisambiguatedDisplayName(A_USER_ID)).isEqualTo("@alice:server.org")
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
@ -38,7 +38,7 @@ class NotificationDataTest {
|
||||||
senderDisplayName = "Alice",
|
senderDisplayName = "Alice",
|
||||||
senderIsNameAmbiguous = false,
|
senderIsNameAmbiguous = false,
|
||||||
)
|
)
|
||||||
assertThat(sut.getSenderName(A_USER_ID)).isEqualTo("Alice")
|
assertThat(sut.getDisambiguatedDisplayName(A_USER_ID)).isEqualTo("Alice")
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
@ -47,7 +47,7 @@ class NotificationDataTest {
|
||||||
senderDisplayName = "Alice",
|
senderDisplayName = "Alice",
|
||||||
senderIsNameAmbiguous = true,
|
senderIsNameAmbiguous = true,
|
||||||
)
|
)
|
||||||
assertThat(sut.getSenderName(A_USER_ID)).isEqualTo("Alice (@alice:server.org)")
|
assertThat(sut.getDisambiguatedDisplayName(A_USER_ID)).isEqualTo("Alice (@alice:server.org)")
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun aNotificationData(
|
private fun aNotificationData(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue