Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore #30

Closed
wants to merge 6 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Trying to pass on TravisCI test
wellguimaraes committed Jan 18, 2016
commit f6c589c773cd3fffb64a03c49307b98d36d6930b
7 changes: 4 additions & 3 deletions paperdb/src/androidTest/java/io/paperdb/PaperTest.java
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@
import android.support.test.runner.AndroidJUnit4;

import org.joda.time.DateTime;
import org.joda.time.DateTimeZone;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -170,12 +171,12 @@ public void testGetAllKeys() {
assertThat(allKeys.contains("city1")).isTrue();
assertThat(allKeys.contains("city2")).isTrue();
}

@Test
public void testCustomSerializer() {
Paper.addSerializer(DateTime.class, new JodaDateTimeSerializer());
DateTime now = DateTime.now();

DateTime now = DateTime.now(DateTimeZone.UTC);
Paper.book().write("joda-datetime", now);
assertEquals(Paper.book().read("joda-datetime"), now);
}