- private val localSone = mock<Sone>()
- private val localIdentity = mock<OwnIdentity>()
- private val post = mock<Post>()
- private val remoteSone = mock<Sone>()
- private val remoteIdentity = mock<Identity>()
-
- init {
- whenever(localSone.id).thenReturn(LOCAL_ID)
- whenever(localSone.isLocal).thenReturn(true)
- whenever(localSone.identity).thenReturn(localIdentity)
- whenever(localIdentity.id).thenReturn(LOCAL_ID)
- whenever(remoteSone.id).thenReturn(REMOTE_ID)
- whenever(remoteSone.identity).thenReturn(remoteIdentity)
- whenever(remoteIdentity.id).thenReturn(REMOTE_ID)
- whenever(post.recipientId).thenReturn(Optional.absent())
- }