import org.hamcrest.Matchers.nullValue
import org.junit.Before
import org.junit.Test
+import java.net.*
/**
* Unit test for [ViewSonePage].
fun setup() {
whenever(currentSone.posts).thenReturn(mutableListOf(post2, post1))
whenever(core.getDirectedPosts("sone-id")).thenReturn(setOf(directed1, directed2))
- core.preferences.postsPerPage = 2
+ core.preferences.newPostsPerPage = 2
}
@Test
@Test
fun `page is link-excepted`() {
- assertThat(page.isLinkExcepted(null), equalTo(true))
+ assertThat(page.isLinkExcepted(URI("")), equalTo(true))
}
@Test