Search in sources :

Example 6 with CursorWindow

use of android.database.CursorWindow in project robolectric by robolectric.

the class ShadowCursorWindowTest method shouldCreateWindowWithName.

@Test
public void shouldCreateWindowWithName() throws Exception {
    CursorWindow window = new CursorWindow("name");
    assertThat(window.getName()).isEqualTo("name");
}
Also used : CursorWindow(android.database.CursorWindow) Test(org.junit.Test)

Example 7 with CursorWindow

use of android.database.CursorWindow in project android_frameworks_base by ParanoidAndroid.

the class CursorWindowTest method testValues.

@SmallTest
public void testValues() {
    CursorWindow window = new CursorWindow("MyWindow");
    doTestValues(window);
    window.close();
}
Also used : CursorWindow(android.database.CursorWindow) SmallTest(android.test.suitebuilder.annotation.SmallTest)

Example 8 with CursorWindow

use of android.database.CursorWindow in project android_frameworks_base by ParanoidAndroid.

the class CursorWindowTest method testDeprecatedConstructor.

@SmallTest
public void testDeprecatedConstructor() {
    @SuppressWarnings("deprecation") CursorWindow window = new CursorWindow(true);
    assertEquals("<unnamed>", window.getName());
    assertEquals(0, window.getStartPosition());
    window.close();
}
Also used : CursorWindow(android.database.CursorWindow) SmallTest(android.test.suitebuilder.annotation.SmallTest)

Example 9 with CursorWindow

use of android.database.CursorWindow in project android_frameworks_base by ParanoidAndroid.

the class CursorWindowTest method testConstructorWithNullName.

@SmallTest
public void testConstructorWithNullName() {
    CursorWindow window = new CursorWindow(null);
    assertEquals("<unnamed>", window.getName());
    assertEquals(0, window.getStartPosition());
    window.close();
}
Also used : CursorWindow(android.database.CursorWindow) SmallTest(android.test.suitebuilder.annotation.SmallTest)

Example 10 with CursorWindow

use of android.database.CursorWindow in project android_frameworks_base by ResurrectionRemix.

the class CursorWindowTest method testConstructorWithNullName.

@SmallTest
public void testConstructorWithNullName() {
    CursorWindow window = new CursorWindow(null);
    assertEquals("<unnamed>", window.getName());
    assertEquals(0, window.getStartPosition());
    window.close();
}
Also used : CursorWindow(android.database.CursorWindow) SmallTest(android.test.suitebuilder.annotation.SmallTest)

Aggregations

CursorWindow (android.database.CursorWindow)41 SmallTest (android.test.suitebuilder.annotation.SmallTest)30 DbStats (android.database.sqlite.SQLiteDebug.DbStats)6 Test (org.junit.Test)2 CrossProcessCursor (android.database.CrossProcessCursor)1 MatrixCursor (android.database.MatrixCursor)1 MutableBoolean (android.util.MutableBoolean)1 MutableInt (android.util.MutableInt)1 ArrayList (java.util.ArrayList)1 FastCursor (org.greenrobot.greendao.internal.FastCursor)1 DbStats (org.sqlite.database.sqlite.SQLiteDebug.DbStats)1