♻️ Use module for web interface
[Sone.git] / src / test / java / net / pterodactylus / sone / data / ProfileTest.java
1 package net.pterodactylus.sone.data;
2
3 import net.pterodactylus.sone.data.Profile.Field;
4
5 import org.hamcrest.MatcherAssert;
6 import org.hamcrest.Matchers;
7 import org.junit.Test;
8 import org.mockito.Mockito;
9
10 /**
11  * Unit test for {@link Profile}.
12  */
13 public class ProfileTest {
14
15         private final Sone sone = Mockito.mock(Sone.class);
16         private final Profile profile = new Profile(sone);
17
18         @Test
19         public void newFieldsAreInitializedWithAnEmptyString() {
20                 Field newField = profile.addField("testField");
21                 MatcherAssert.assertThat(newField.getValue(), Matchers.is(""));
22         }
23
24 }