/**
* Unit test for [UnfollowSonePage].
*/
-class UnfollowSonePageTest: WebPageTest(::UnfollowSonePage) {
+class UnfollowSonePageTest : WebPageTest(::UnfollowSonePage) {
@Test
fun `page returns correct path`() {
- assertThat(page.path, equalTo("unfollowSone.html"))
+ assertThat(page.path, equalTo("unfollowSone.html"))
}
@Test
fun `page requires login`() {
- assertThat(page.requiresLogin(), equalTo(true))
+ assertThat(page.requiresLogin(), equalTo(true))
}
@Test
fun `page returns correct page title`() {
- addTranslation("Page.UnfollowSone.Title", "unfollow page title")
+ addTranslation("Page.UnfollowSone.Title", "unfollow page title")
assertThat(page.getPageTitle(soneRequest), equalTo("unfollow page title"))
}
@Test
fun `page can be created by dependency injection`() {
- assertThat(baseInjector.getInstance<UnfollowSonePage>(), notNullValue())
+ assertThat(baseInjector.getInstance<UnfollowSonePage>(), notNullValue())
}
}