✨ Use @TemplatePath annotations on most pages
[Sone.git] / src / test / kotlin / net / pterodactylus / sone / web / pages / CreateReplyPageTest.kt
index 4cd67c9..ec56267 100644 (file)
@@ -5,6 +5,7 @@ import net.pterodactylus.sone.data.Sone
 import net.pterodactylus.sone.test.getInstance
 import net.pterodactylus.sone.test.mock
 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.equalTo
@@ -93,4 +94,9 @@ class CreateReplyPageTest: WebPageTest(::CreateReplyPage) {
            assertThat(baseInjector.getInstance<CreateReplyPage>(), notNullValue())
        }
 
+       @Test
+       fun `page is annotated with correct template path`() {
+           assertThat(page.templatePath, equalTo("/templates/createReply.html"))
+       }
+
 }