import com.google.common.base.Optional;
import org.junit.Before;
+import org.junit.Ignore;
import org.junit.Test;
import org.mockito.Mockito;
import org.mockito.invocation.InvocationOnMock;
assertThat(stringValues.get("SoneFollowingTimes/0/Sone").getValue(), nullValue());
}
+ @Test
+ @Ignore("enable once Sones are built by the database")
+ public void soneUpdateTimeIsRetained() {
+ memoryDatabase.storeSone(sone);
+ memoryDatabase.updateSoneTime(sone, 1000L);
+ Sone updatedSone = memoryDatabase.getSone(SONE_ID).get();
+ assertThat(updatedSone.getTime(), is(1000L));
+ }
+
}