use of android.database.CursorWindow in project android_frameworks_base by ResurrectionRemix.
the class CursorWindowTest method testConstructorWithEmptyName.
@SmallTest
public void testConstructorWithEmptyName() {
CursorWindow window = new CursorWindow("");
assertEquals("<unnamed>", window.getName());
assertEquals(0, window.getStartPosition());
window.close();
}
use of android.database.CursorWindow in project android_frameworks_base by ResurrectionRemix.
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();
}
use of android.database.CursorWindow in project android_frameworks_base by DirtyUnicorns.
the class CursorWindowTest method testValues.
@SmallTest
public void testValues() {
CursorWindow window = new CursorWindow("MyWindow");
doTestValues(window);
window.close();
}
use of android.database.CursorWindow in project android_frameworks_base by DirtyUnicorns.
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();
}
use of android.database.CursorWindow in project android_frameworks_base by crdroidandroid.
the class CursorWindowTest method testValues.
@SmallTest
public void testValues() {
CursorWindow window = new CursorWindow("MyWindow");
doTestValues(window);
window.close();
}
Aggregations