Package org.robolectric.fakes
Class RoboCursor
java.lang.Object
org.robolectric.fakes.BaseCursor
org.robolectric.fakes.RoboCursor
- All Implemented Interfaces:
Cursor
,Closeable
,AutoCloseable
@Deprecated public class RoboCursor extends BaseCursor
Deprecated.
Use
MatrixCursor
instead.Robolectric implementation of
Cursor
.-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description protected List<String>
columnNames
Deprecated.String[]
projection
Deprecated.protected Object[][]
results
Deprecated.String
selection
Deprecated.String[]
selectionArgs
Deprecated.String
sortOrder
Deprecated.Uri
uri
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
Constructors Constructor Description RoboCursor()
Deprecated. -
Method Summary
Modifier and Type Method Description void
close()
Deprecated.byte[]
getBlob(int columnIndex)
Deprecated.boolean
getCloseWasCalled()
Deprecated.int
getColumnCount()
Deprecated.int
getColumnIndex(String columnName)
Deprecated.int
getColumnIndexOrThrow(String columnName)
Deprecated.String
getColumnName(int index)
Deprecated.String[]
getColumnNames()
Deprecated.int
getCount()
Deprecated.double
getDouble(int columnIndex)
Deprecated.Bundle
getExtras()
Deprecated.float
getFloat(int columnIndex)
Deprecated.int
getInt(int columnIndex)
Deprecated.long
getLong(int columnIndex)
Deprecated.int
getPosition()
Deprecated.short
getShort(int columnIndex)
Deprecated.String
getString(int columnIndex)
Deprecated.int
getType(int columnIndex)
Deprecated.boolean
isAfterLast()
Deprecated.boolean
isBeforeFirst()
Deprecated.boolean
isClosed()
Deprecated.boolean
isFirst()
Deprecated.boolean
isLast()
Deprecated.boolean
isNull(int columnIndex)
Deprecated.boolean
move(int offset)
Deprecated.boolean
moveToFirst()
Deprecated.boolean
moveToLast()
Deprecated.boolean
moveToNext()
Deprecated.boolean
moveToPosition(int position)
Deprecated.boolean
moveToPrevious()
Deprecated.void
setColumnNames(List<String> columnNames)
Deprecated.void
setExtras(Bundle extras)
Deprecated.void
setQuery(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder)
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
-
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.
-