✨ Annotate CreateSonePage with MenuName
[Sone.git] / src / test / kotlin / net / pterodactylus / sone / web / pages / CreateSonePageTest.kt
index 547347a..9b5f983 100644 (file)
@@ -7,6 +7,7 @@ import net.pterodactylus.sone.test.getInstance
 import net.pterodactylus.sone.test.mock
 import net.pterodactylus.sone.test.whenever
 import net.pterodactylus.sone.web.baseInjector
+import net.pterodactylus.sone.web.page.*
 import net.pterodactylus.util.web.Method.POST
 import org.hamcrest.MatcherAssert.assertThat
 import org.hamcrest.Matchers.contains
@@ -150,4 +151,9 @@ class CreateSonePageTest : WebPageTest(::CreateSonePage) {
                assertThat(baseInjector.getInstance<CreateSonePage>(), notNullValue())
        }
 
+       @Test
+       fun `page is annotated with the correct menuname`() {
+           assertThat(page.menuName, equalTo("CreateSone"))
+       }
+
 }