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");
}
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();
}
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();
}
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();
}
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();
}
Aggregations