Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2925d1e7 authored by Jonathan Klee's avatar Jonathan Klee
Browse files

fix: fix unit tests

parent 4c0134e9
Loading
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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;
@@ -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));
    }
}