@Immutable public final class CursorAssertions extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
assertCursorOpen(Cursor cursor)
Checks the cursor is open.
|
static void |
assertCursorPositionValid(Cursor cursor)
Checks the cursor is at a valid position for reading data.
|
public static void assertCursorPositionValid(@NonNull Cursor cursor)
AssertionError - if the position is before or after the last position.public static void assertCursorOpen(@NonNull Cursor cursor)
AssertionError - if the cursor is closed.