1 package net.pterodactylus.sone.data;
3 import net.pterodactylus.sone.data.Profile.Field;
5 import org.hamcrest.MatcherAssert;
6 import org.hamcrest.Matchers;
8 import org.mockito.Mockito;
11 * Unit test for {@link Profile}.
13 * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
15 public class ProfileTest {
17 private final Sone sone = Mockito.mock(Sone.class);
18 private final Profile profile = new Profile(sone);
21 public void newFieldsAreInitializedWithAnEmptyString() {
22 Field newField = profile.addField("testField");
23 MatcherAssert.assertThat(newField.getValue(), Matchers.is(""));