🎨 Specify types for mocks explicitely
[Sone.git] / src / test / kotlin / net / pterodactylus / sone / text / FreenetLinkPartTest.kt
1 package net.pterodactylus.sone.text
2
3 import org.hamcrest.MatcherAssert.assertThat
4 import org.hamcrest.Matchers.equalTo
5 import org.junit.Test
6
7 /**
8  * Unit test for [FreenetLinkPart].
9  */
10 class FreenetLinkPartTest {
11
12         @Test
13         fun linkIsUsedAsTitleIfNoTextIsGiven() {
14                 assertThat(FreenetLinkPart("link", "text", true).title, equalTo("link"))
15         }
16
17 }