Assert KEY_READ in commit test
[gitter-test.git] / src / ch / codelabs / gitter / test / CommitDbAdapterTest.java
index 9c9ee1a..2b0ecb9 100644 (file)
@@ -44,7 +44,9 @@ public class CommitDbAdapterTest extends AndroidTestCase {
                final Cursor c = commitDbAdapter.fetchAllCommits();
                assertTrue(c.getCount() > 0);
 
-               c.moveToFirst();
+               c.moveToLast();
+               assertEquals(0, c.getInt
+                               (c.getColumnIndexOrThrow(CommitDbAdapter.KEY_READ)));
                assertEquals("Update TODO", c.getString
                                (c.getColumnIndexOrThrow(CommitDbAdapter.KEY_TITLE)));
                assertEquals("John Doe doe@example.com", c.getString