Assert KEY_READ in commit test
authorReto Buerki <reet@codelabs.ch>
Tue, 20 Mar 2012 09:27:11 +0000 (10:27 +0100)
committerReto Buerki <reet@codelabs.ch>
Tue, 20 Mar 2012 09:27:11 +0000 (10:27 +0100)
src/ch/codelabs/gitter/test/CommitDbAdapterTest.java

index 7bc9ce9..2b0ecb9 100644 (file)
@@ -45,6 +45,8 @@ public class CommitDbAdapterTest extends AndroidTestCase {
                assertTrue(c.getCount() > 0);
 
                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