Convert create post page test to use new web page test base
[Sone.git] / src / test / kotlin / net / pterodactylus / sone / text / LinkPartTest.kt
1 package net.pterodactylus.sone.text
2
3 import org.hamcrest.MatcherAssert.assertThat
4 import org.hamcrest.Matchers.`is`
5 import org.junit.Test
6
7 /**
8  * Unit test for [LinkPart].
9  */
10 class LinkPartTest {
11
12         @Test
13         fun linkIsUsedAsTitleIfNoTitleIsGiven() {
14                 assertThat(LinkPart("link", "text").title, `is`("link"))
15         }
16
17 }