✨ Use @TemplatePath annotations on most pages
[Sone.git] / src / test / kotlin / net / pterodactylus / sone / web / pages / CreatePostPageTest.kt
index dccce87..ef54172 100644 (file)
@@ -6,6 +6,7 @@ import net.pterodactylus.sone.test.getInstance
 import net.pterodactylus.sone.test.mock
 import net.pterodactylus.sone.utils.asOptional
 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
@@ -96,4 +97,9 @@ class CreatePostPageTest: WebPageTest(::CreatePostPage) {
            assertThat(baseInjector.getInstance<CreatePostPage>(), notNullValue())
        }
 
+       @Test
+       fun `page is annotated with correct template path`() {
+           assertThat(page.templatePath, equalTo("/templates/createPost.html"))
+       }
+
 }