From: David ‘Bombe’ Roden Date: Wed, 3 May 2017 18:26:51 +0000 (+0200) Subject: Use more concise SAM implementation X-Git-Tag: 0.9.7^2~227 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=1a75341e36e4a733e379b1d4d4cf6ed798ab2961;p=Sone.git Use more concise SAM implementation --- diff --git a/src/test/kotlin/net/pterodactylus/sone/web/pages/IndexPageTest.kt b/src/test/kotlin/net/pterodactylus/sone/web/pages/IndexPageTest.kt index 04c83d6..e6256bb 100644 --- a/src/test/kotlin/net/pterodactylus/sone/web/pages/IndexPageTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/web/pages/IndexPageTest.kt @@ -26,9 +26,7 @@ class IndexPageTest : WebPageTest() { @Before fun setupPostVisibilityFilter() { - whenever(postVisibilityFilter.isVisible(ArgumentMatchers.eq(currentSone))).thenReturn(object : Predicate { - override fun apply(input: Post?) = true - }) + whenever(postVisibilityFilter.isVisible(ArgumentMatchers.eq(currentSone))).thenReturn(Predicate { true }) } private fun createPost(time: Long, directed: Boolean = false) = mock().apply {