Assert that getLatestCommit returns one commit only
authorReto Buerki <reet@codelabs.ch>
Tue, 20 Mar 2012 11:13:01 +0000 (12:13 +0100)
committerReto Buerki <reet@codelabs.ch>
Tue, 20 Mar 2012 11:13:01 +0000 (12:13 +0100)
src/ch/codelabs/gitter/test/CommitDbAdapterTest.java

index 964fcba..4ff8993 100644 (file)
@@ -73,6 +73,7 @@ public class CommitDbAdapterTest extends AndroidTestCase {
 
                /* Test latest commit getter */
                i = commitDbAdapter.getLatestCommit();
+               assertTrue(i.getCount() == 1);
                assertEquals(testHash,
                                i.getString(i.getColumnIndexOrThrow(CommitDbAdapter.KEY_HASH)));