package net.pterodactylus.sone.data;
+import static com.google.common.base.Optional.of;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.contains;
import static org.hamcrest.Matchers.is;
assertThat(profile.getBirthDay(), is(24));
}
+ @Test
+ public void testSettingAnAvatar() {
+ profile.setAvatar(of("avatar1"));
+ assertThat(profile.getAvatar(), is("avatar1"));
+ }
+
+ @Test
+ public void testSettingNoAvatar() {
+ profile.setAvatar(Optional.<String>absent());
+ assertThat(profile.getAvatar(), is((String) null));
+ }
+
}