projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add test for DI constructability of CreateAlbumPage
[Sone.git]
/
src
/
test
/
kotlin
/
net
/
pterodactylus
/
sone
/
web
/
pages
/
DeleteProfileFieldPageTest.kt
diff --git
a/src/test/kotlin/net/pterodactylus/sone/web/pages/DeleteProfileFieldPageTest.kt
b/src/test/kotlin/net/pterodactylus/sone/web/pages/DeleteProfileFieldPageTest.kt
index
df91d74
..
8f344eb
100644
(file)
--- a/
src/test/kotlin/net/pterodactylus/sone/web/pages/DeleteProfileFieldPageTest.kt
+++ b/
src/test/kotlin/net/pterodactylus/sone/web/pages/DeleteProfileFieldPageTest.kt
@@
-15,15
+15,11
@@
import org.mockito.Mockito.verify
/**
* Unit test for [DeleteProfileFieldPage].
*/
/**
* Unit test for [DeleteProfileFieldPage].
*/
-class DeleteProfileFieldPageTest: WebPageTest() {
-
- private val page = DeleteProfileFieldPage(template, webInterface)
+class DeleteProfileFieldPageTest: WebPageTest(::DeleteProfileFieldPage) {
private val profile = Profile(currentSone)
private val field = profile.addField("name")
private val profile = Profile(currentSone)
private val field = profile.addField("name")
- override fun getPage() = page
-
@Before
fun setupProfile() {
whenever(currentSone.profile).thenReturn(profile)
@Before
fun setupProfile() {
whenever(currentSone.profile).thenReturn(profile)