5c825744b3f475b8492f8867b980c12a54044854
[Sone.git] / src / test / kotlin / net / pterodactylus / sone / data / ProfileTest.kt
1 package net.pterodactylus.sone.data
2
3 import net.pterodactylus.sone.test.*
4 import org.hamcrest.MatcherAssert.*
5 import org.hamcrest.Matchers.*
6 import org.junit.*
7
8 /**
9  * Unit test for [Profile].
10  */
11 class ProfileTest {
12
13         private val sone = mock<Sone>()
14         private val profile = Profile(sone)
15
16         @Test
17         fun `new fields are initialized with an empty string`() {
18                 val newField = profile.addField("testField")
19                 assertThat(newField.value, equalTo(""))
20         }
21
22 }