@Test
fun `command requires write access`() {
- assertThat(command.requiresWriteAccess(), equalTo(true))
+ assertThat(command.requiresWriteAccess, equalTo(true))
}
@Test
private fun addValidPostParameter() {
parameters += "Post" to "ValidPostId"
- whenever(core.getPost("ValidPostId")).thenReturn(of(post))
+ whenever(core.getPost("ValidPostId")).thenReturn(post)
}
@Test