/**
* This page lets the user edit her profile.
*/
+@MenuName("EditProfile")
class EditProfilePage @Inject constructor(template: Template, webInterface: WebInterface) :
LoggedInPage("editProfile.html", template, "Page.EditProfile.Title", webInterface) {
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
assertThat(baseInjector.getInstance<EditProfilePage>(), notNullValue())
}
+ @Test
+ fun `page is annotated with correct menuname`() {
+ assertThat(page.menuName, equalTo("EditProfile"))
+ }
+
}