Set URI and request method separately in tests
[Sone.git] / src / test / kotlin / net / pterodactylus / sone / web / pages / KnownSonesPageTest.kt
index 42dd33b..a2bdcc5 100644 (file)
@@ -11,7 +11,6 @@ import net.pterodactylus.sone.freenet.wot.OwnIdentity
 import net.pterodactylus.sone.test.mock
 import net.pterodactylus.sone.test.whenever
 import net.pterodactylus.sone.utils.Pagination
-import net.pterodactylus.util.web.Method.GET
 import org.hamcrest.MatcherAssert.assertThat
 import org.hamcrest.Matchers.contains
 import org.hamcrest.Matchers.equalTo
@@ -40,11 +39,6 @@ class KnownSonesPageTest: WebPageTest() {
                addSone("sone4", sones[3])
        }
 
-       @Before
-       fun setupGetRequests() {
-               setMethod(GET)
-       }
-
        private fun createSone(time: Long, posts: Int, replies: Int, images: Int, name: String, local: Boolean, new: Boolean) = mock<Sone>().apply {
                whenever(identity).thenReturn(if (local) mock<OwnIdentity>() else mock<Identity>())
                whenever(this.isLocal).thenReturn(local)