Search in sources :

Example 31 with CursorWindow

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

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 32 with CursorWindow

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

the class CursorWindowTest method testConstructorWithEmptyName.

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

Example 33 with CursorWindow

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

the class CursorWindowTest method testConstructor_WithName.

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

Example 34 with CursorWindow

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

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 35 with CursorWindow

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

the class CursorWindowTest method testConstructor_WithName.

@SmallTest
public void testConstructor_WithName() {
    CursorWindow window = new CursorWindow("MyWindow");
    assertEquals("MyWindow", 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