Loading opentasks-provider/src/test/java/org/dmfs/provider/tasks/processors/tasks/instancedata/DatedTest.java +3 −1 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ import static org.hamcrest.Matchers.is; import static org.junit.Assert.assertThat; import android.content.ContentValues; import java.util.TimeZone; import org.dmfs.jems.optional.elementary.Present; import org.dmfs.provider.tasks.utils.ContentValuesWithLong; import org.dmfs.rfc5545.DateTime; Loading Loading @@ -50,7 +51,8 @@ public class DatedTest { ContentValues instanceData = new Dated(new Present<>(start), "ts", "sorting", ContentValues::new).value(); assertThat(instanceData, new ContentValuesWithLong("ts", start.getTimestamp())); assertThat(instanceData, new ContentValuesWithLong("sorting", start.getInstance())); assertThat(instanceData, new ContentValuesWithLong("sorting", start.shiftTimeZone(TimeZone.getDefault()).getInstance())); assertThat(instanceData.size(), is(2)); } } Loading
opentasks-provider/src/test/java/org/dmfs/provider/tasks/processors/tasks/instancedata/DatedTest.java +3 −1 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ import static org.hamcrest.Matchers.is; import static org.junit.Assert.assertThat; import android.content.ContentValues; import java.util.TimeZone; import org.dmfs.jems.optional.elementary.Present; import org.dmfs.provider.tasks.utils.ContentValuesWithLong; import org.dmfs.rfc5545.DateTime; Loading Loading @@ -50,7 +51,8 @@ public class DatedTest { ContentValues instanceData = new Dated(new Present<>(start), "ts", "sorting", ContentValues::new).value(); assertThat(instanceData, new ContentValuesWithLong("ts", start.getTimestamp())); assertThat(instanceData, new ContentValuesWithLong("sorting", start.getInstance())); assertThat(instanceData, new ContentValuesWithLong("sorting", start.shiftTimeZone(TimeZone.getDefault()).getInstance())); assertThat(instanceData.size(), is(2)); } }