@Before
fun setupPostAndSones() {
- whenever(core.getPost("PostId")).thenReturn(post.asOptional())
+ whenever(core.getPost("PostId")).thenReturn(post)
whenever(core.getSone("RemoteSoneId")).thenReturn(remoteSone)
whenever(core.getSone("LocalSoneId")).thenReturn(localSone)
}
@Test
fun `command requires write access`() {
- assertThat(command.requiresWriteAccess(), equalTo(true))
+ assertThat(command.requiresWriteAccess, equalTo(true))
}
@Test