🎨 Fix formatting
[Sone.git] / src / test / kotlin / net / pterodactylus / sone / web / pages / UnlikePageTest.kt
index fd37fc8..2d8ef89 100644 (file)
@@ -1,12 +1,11 @@
 package net.pterodactylus.sone.web.pages
 
-import net.pterodactylus.sone.test.getInstance
-import net.pterodactylus.sone.web.baseInjector
-import net.pterodactylus.util.web.Method.POST
-import org.hamcrest.MatcherAssert.assertThat
-import org.hamcrest.Matchers.equalTo
-import org.hamcrest.Matchers.notNullValue
-import org.junit.Test
+import net.pterodactylus.sone.test.*
+import net.pterodactylus.sone.web.*
+import net.pterodactylus.util.web.Method.*
+import org.hamcrest.MatcherAssert.*
+import org.hamcrest.Matchers.*
+import org.junit.*
 import org.mockito.ArgumentMatchers.any
 import org.mockito.Mockito.never
 import org.mockito.Mockito.verify
@@ -14,22 +13,22 @@ import org.mockito.Mockito.verify
 /**
  * Unit test for [UnlikePage].
  */
-class UnlikePageTest: WebPageTest(::UnlikePage) {
+class UnlikePageTest : WebPageTest(::UnlikePage) {
 
        @Test
        fun `page returns correct path`() {
-           assertThat(page.path, equalTo("unlike.html"))
+               assertThat(page.path, equalTo("unlike.html"))
        }
 
        @Test
        fun `page requires login`() {
-           assertThat(page.requiresLogin(), equalTo(true))
+               assertThat(page.requiresLogin(), equalTo(true))
        }
 
        @Test
        fun `page returns correct title`() {
                addTranslation("Page.Unlike.Title", "unlike page title")
-           assertThat(page.getPageTitle(soneRequest), equalTo("unlike page title"))
+               assertThat(page.getPageTitle(soneRequest), equalTo("unlike page title"))
        }
 
        @Test
@@ -73,7 +72,7 @@ class UnlikePageTest: WebPageTest(::UnlikePage) {
 
        @Test
        fun `page can be created by dependency injection`() {
-           assertThat(baseInjector.getInstance<UnlikePage>(), notNullValue())
+               assertThat(baseInjector.getInstance<UnlikePage>(), notNullValue())
        }
 
 }