Minor reformatting
authorReto Buerki <reet@codelabs.ch>
Tue, 20 Mar 2012 09:53:48 +0000 (10:53 +0100)
committerReto Buerki <reet@codelabs.ch>
Tue, 20 Mar 2012 09:53:48 +0000 (10:53 +0100)
src/ch/codelabs/gitter/test/CommitDbAdapterTest.java

index 2b0ecb9..885dade 100644 (file)
@@ -34,8 +34,8 @@ public class CommitDbAdapterTest extends AndroidTestCase {
         * Insert commit into database.
         */
        public void testInsertCommit() {
-               final CommitDbAdapter commitDbAdapter = new
-                               CommitDbAdapter(getContext());
+               final CommitDbAdapter commitDbAdapter = new CommitDbAdapter(
+                               getContext());
                commitDbAdapter.open();
 
                final long id = commitDbAdapter.insertCommit("Update TODO",
@@ -45,16 +45,16 @@ 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
-                               (c.getColumnIndexOrThrow(CommitDbAdapter.KEY_AUTHOR)));
-               assertEquals("http://1.com/abc", c.getString
-                               (c.getColumnIndexOrThrow(CommitDbAdapter.KEY_DIFFLINK)));
-               assertEquals("testdata", c.getString
-                               (c.getColumnIndexOrThrow(CommitDbAdapter.KEY_CONTENT)));
+               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(c
+                               .getColumnIndexOrThrow(CommitDbAdapter.KEY_AUTHOR)));
+               assertEquals("http://1.com/abc", c.getString(c
+                               .getColumnIndexOrThrow(CommitDbAdapter.KEY_DIFFLINK)));
+               assertEquals("testdata", c.getString(c
+                               .getColumnIndexOrThrow(CommitDbAdapter.KEY_CONTENT)));
 
                commitDbAdapter.deleteCommit(id);
                c.close();