import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
+import static org.hamcrest.Matchers.notNullValue;
import net.pterodactylus.sone.data.Profile.Field;
final Profile profile = new Profile((Sone) null);
@Test
+ public void testAddingAField() {
+ profile.addField("TestField");
+ Field testField = profile.getFieldByName("TestField");
+ assertThat(testField, notNullValue());
+ assertThat(testField.getName(), is("TestField"));
+ }
+
+ @Test
public void testRenamingAField() {
profile.addField("TestField");
Field testField = profile.getFieldByName("TestField");