Home
last modified time | relevance | path

Searched refs:dataCursor (Results 1 – 1 of 1) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DSQLiteStatementTest.java54 Cursor dataCursor = database.rawQuery("SELECT COUNT(*) FROM `routine`", null); in testExecuteInsert() local
55 assertThat(dataCursor.moveToFirst()).isTrue(); in testExecuteInsert()
56 assertThat(dataCursor.getInt(0)).isEqualTo(2); in testExecuteInsert()
57 dataCursor.close(); in testExecuteInsert()
59 dataCursor = database.rawQuery("SELECT `id`, `name` ,`lastUsed` FROM `routine`", null); in testExecuteInsert()
60 assertThat(dataCursor.moveToNext()).isTrue(); in testExecuteInsert()
61 assertThat(dataCursor.getInt(0)).isEqualTo(1); in testExecuteInsert()
62 assertThat(dataCursor.getString(1)).isEqualTo("Leg Press"); in testExecuteInsert()
63 assertThat(dataCursor.getInt(2)).isEqualTo(0); in testExecuteInsert()
64 assertThat(dataCursor.moveToNext()).isTrue(); in testExecuteInsert()
[all …]