Replace image implementation test with Kotlin version
[Sone.git] / src / test / kotlin / net / pterodactylus / sone / data / impl / ImageImplTest.kt
1 package net.pterodactylus.sone.data.impl
2
3 import net.pterodactylus.sone.data.Image
4 import org.junit.Test
5
6 /**
7  * Unit test for [ImageImpl].
8  */
9 class ImageImplTest {
10
11     private val image = ImageImpl()
12
13     @Test(expected = Image.Modifier.ImageTitleMustNotBeEmpty::class)
14     fun `modifier does not allow title to be empty`() {
15         image.modify().setTitle("").update()
16     }
17
18 }