Fix test compilation issue

This commit is contained in:
Benoit Marty 2020-01-09 08:03:14 +01:00
parent 8c4d8763a2
commit e14b9b3b20
1 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ import im.vector.matrix.android.api.session.events.model.toContent
import im.vector.matrix.android.api.session.room.Room import im.vector.matrix.android.api.session.room.Room
import im.vector.matrix.android.api.session.room.RoomService import im.vector.matrix.android.api.session.room.RoomService
import im.vector.matrix.android.api.session.room.model.Membership import im.vector.matrix.android.api.session.room.model.Membership
import im.vector.matrix.android.api.session.room.model.RoomMember import im.vector.matrix.android.api.session.room.model.RoomMemberContent
import im.vector.matrix.android.api.session.room.model.message.MessageTextContent import im.vector.matrix.android.api.session.room.model.message.MessageTextContent
import io.mockk.every import io.mockk.every
import io.mockk.mockk import io.mockk.mockk
@ -40,7 +40,7 @@ class PushrulesConditionTest {
content = MessageTextContent("m.text", "Yo wtf?").toContent(), content = MessageTextContent("m.text", "Yo wtf?").toContent(),
originServerTs = 0) originServerTs = 0)
val rm = RoomMember( val rm = RoomMemberContent(
Membership.INVITE, Membership.INVITE,
displayName = "Foo", displayName = "Foo",
avatarUrl = "mxc://matrix.org/EqMZYbREvHXvYFyfxOlkf" avatarUrl = "mxc://matrix.org/EqMZYbREvHXvYFyfxOlkf"
@ -72,7 +72,7 @@ class PushrulesConditionTest {
type = "m.room.member", type = "m.room.member",
eventId = "mx0", eventId = "mx0",
stateKey = "@foo:matrix.org", stateKey = "@foo:matrix.org",
content = RoomMember( content = RoomMemberContent(
Membership.INVITE, Membership.INVITE,
displayName = "Foo", displayName = "Foo",
avatarUrl = "mxc://matrix.org/EqMZYbREvHXvYFyfxOlkf" avatarUrl = "mxc://matrix.org/EqMZYbREvHXvYFyfxOlkf"