Package org.robolectric.fakes
Class RoboCursor
java.lang.Object
org.robolectric.fakes.BaseCursor
org.robolectric.fakes.RoboCursor
- All Implemented Interfaces:
Cursor
,Closeable
,AutoCloseable
Deprecated.
Robolectric implementation of
Cursor
.-
Nested Class Summary
Nested classes/interfaces inherited from interface android.database.Cursor
Cursor.FieldType
-
Field Summary
Modifier and TypeFieldDescriptionDeprecated.String[]
Deprecated.protected Object[][]
Deprecated.Deprecated.String[]
Deprecated.Deprecated.Deprecated.Fields inherited from interface android.database.Cursor
FIELD_TYPE_BLOB, FIELD_TYPE_FLOAT, FIELD_TYPE_INTEGER, FIELD_TYPE_NULL, FIELD_TYPE_STRING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Deprecated.byte[]
getBlob
(int columnIndex) Deprecated.boolean
Deprecated.int
Deprecated.int
getColumnIndex
(String columnName) Deprecated.int
getColumnIndexOrThrow
(String columnName) Deprecated.getColumnName
(int index) Deprecated.String[]
Deprecated.int
getCount()
Deprecated.double
getDouble
(int columnIndex) Deprecated.Deprecated.float
getFloat
(int columnIndex) Deprecated.int
getInt
(int columnIndex) Deprecated.long
getLong
(int columnIndex) Deprecated.int
Deprecated.short
getShort
(int columnIndex) Deprecated.getString
(int columnIndex) Deprecated.int
getType
(int columnIndex) Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
isClosed()
Deprecated.boolean
isFirst()
Deprecated.boolean
isLast()
Deprecated.boolean
isNull
(int columnIndex) Deprecated.boolean
move
(int offset) Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
moveToPosition
(int position) Deprecated.boolean
Deprecated.void
setColumnNames
(List<String> columnNames) Deprecated.void
Deprecated.void
Deprecated.void
setResults
(Object[][] results) Deprecated.Methods inherited from class org.robolectric.fakes.BaseCursor
copyStringToBuffer, deactivate, getNotificationUri, getWantsAllOnMoveCalls, registerContentObserver, registerDataSetObserver, requery, respond, setNotificationUri, unregisterContentObserver, unregisterDataSetObserver
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface android.database.Cursor
getNotificationUris, setNotificationUris
-
Field Details
-
uri
Deprecated. -
projection
Deprecated. -
selection
Deprecated. -
selectionArgs
Deprecated. -
sortOrder
Deprecated. -
results
Deprecated. -
columnNames
Deprecated.
-
-
Constructor Details
-
RoboCursor
public RoboCursor()Deprecated.
-
-
Method Details
-
setQuery
public void setQuery(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) Deprecated.- Overrides:
setQuery
in classBaseCursor
-
getColumnIndexOrThrow
Deprecated.- Specified by:
getColumnIndexOrThrow
in interfaceCursor
- Overrides:
getColumnIndexOrThrow
in classBaseCursor
- Throws:
IllegalArgumentException
-
getColumnIndex
Deprecated.- Specified by:
getColumnIndex
in interfaceCursor
- Overrides:
getColumnIndex
in classBaseCursor
-
getString
Deprecated.- Specified by:
getString
in interfaceCursor
- Overrides:
getString
in classBaseCursor
-
getShort
public short getShort(int columnIndex) Deprecated.- Specified by:
getShort
in interfaceCursor
- Overrides:
getShort
in classBaseCursor
-
getInt
public int getInt(int columnIndex) Deprecated.- Specified by:
getInt
in interfaceCursor
- Overrides:
getInt
in classBaseCursor
-
getLong
public long getLong(int columnIndex) Deprecated.- Specified by:
getLong
in interfaceCursor
- Overrides:
getLong
in classBaseCursor
-
getFloat
public float getFloat(int columnIndex) Deprecated.- Specified by:
getFloat
in interfaceCursor
- Overrides:
getFloat
in classBaseCursor
-
getDouble
public double getDouble(int columnIndex) Deprecated.- Specified by:
getDouble
in interfaceCursor
- Overrides:
getDouble
in classBaseCursor
-
getBlob
public byte[] getBlob(int columnIndex) Deprecated.- Specified by:
getBlob
in interfaceCursor
- Overrides:
getBlob
in classBaseCursor
-
getType
public int getType(int columnIndex) Deprecated.- Specified by:
getType
in interfaceCursor
- Overrides:
getType
in classBaseCursor
-
isNull
public boolean isNull(int columnIndex) Deprecated.- Specified by:
isNull
in interfaceCursor
- Overrides:
isNull
in classBaseCursor
-
getCount
public int getCount()Deprecated.- Specified by:
getCount
in interfaceCursor
- Overrides:
getCount
in classBaseCursor
-
moveToNext
public boolean moveToNext()Deprecated.- Specified by:
moveToNext
in interfaceCursor
- Overrides:
moveToNext
in classBaseCursor
-
moveToFirst
public boolean moveToFirst()Deprecated.- Specified by:
moveToFirst
in interfaceCursor
- Overrides:
moveToFirst
in classBaseCursor
-
moveToPosition
public boolean moveToPosition(int position) Deprecated.- Specified by:
moveToPosition
in interfaceCursor
- Overrides:
moveToPosition
in classBaseCursor
-
close
public void close()Deprecated.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceCursor
- Overrides:
close
in classBaseCursor
-
getColumnCount
public int getColumnCount()Deprecated.- Specified by:
getColumnCount
in interfaceCursor
- Overrides:
getColumnCount
in classBaseCursor
-
getColumnName
Deprecated.- Specified by:
getColumnName
in interfaceCursor
- Overrides:
getColumnName
in classBaseCursor
-
isBeforeFirst
public boolean isBeforeFirst()Deprecated.- Specified by:
isBeforeFirst
in interfaceCursor
- Overrides:
isBeforeFirst
in classBaseCursor
-
isAfterLast
public boolean isAfterLast()Deprecated.- Specified by:
isAfterLast
in interfaceCursor
- Overrides:
isAfterLast
in classBaseCursor
-
isFirst
public boolean isFirst()Deprecated.- Specified by:
isFirst
in interfaceCursor
- Overrides:
isFirst
in classBaseCursor
-
isLast
public boolean isLast()Deprecated.- Specified by:
isLast
in interfaceCursor
- Overrides:
isLast
in classBaseCursor
-
getPosition
public int getPosition()Deprecated.- Specified by:
getPosition
in interfaceCursor
- Overrides:
getPosition
in classBaseCursor
-
move
public boolean move(int offset) Deprecated.- Specified by:
move
in interfaceCursor
- Overrides:
move
in classBaseCursor
-
moveToLast
public boolean moveToLast()Deprecated.- Specified by:
moveToLast
in interfaceCursor
- Overrides:
moveToLast
in classBaseCursor
-
moveToPrevious
public boolean moveToPrevious()Deprecated.- Specified by:
moveToPrevious
in interfaceCursor
- Overrides:
moveToPrevious
in classBaseCursor
-
getColumnNames
Deprecated.- Specified by:
getColumnNames
in interfaceCursor
- Overrides:
getColumnNames
in classBaseCursor
-
isClosed
public boolean isClosed()Deprecated.- Specified by:
isClosed
in interfaceCursor
- Overrides:
isClosed
in classBaseCursor
-
getExtras
Deprecated.- Specified by:
getExtras
in interfaceCursor
- Overrides:
getExtras
in classBaseCursor
-
setExtras
Deprecated.- Specified by:
setExtras
in interfaceCursor
- Overrides:
setExtras
in classBaseCursor
-
setColumnNames
Deprecated. -
setResults
Deprecated. -
getCloseWasCalled
public boolean getCloseWasCalled()Deprecated.
-
MatrixCursor
instead.