diff options
author | Android (Google) Code Review <android-gerrit@google.com> | 2009-07-22 13:29:31 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2009-07-22 13:29:31 -0700 |
commit | 1186bb1ecaf79402b8895d5bc5f23fdee0d7e922 (patch) | |
tree | e618399427dbed690f79828d9a97f954d95b9948 /tests/CoreTests | |
parent | c7bebd15378d98104e6cd32666665fd60eaa8043 (diff) | |
parent | ae1ba650074ab7b9a73f4430c1fc3576a8199383 (diff) | |
download | frameworks_base-1186bb1ecaf79402b8895d5bc5f23fdee0d7e922.zip frameworks_base-1186bb1ecaf79402b8895d5bc5f23fdee0d7e922.tar.gz frameworks_base-1186bb1ecaf79402b8895d5bc5f23fdee0d7e922.tar.bz2 |
am ae1ba650: Merge change 8227 into donut
Merge commit 'ae1ba650074ab7b9a73f4430c1fc3576a8199383'
* commit 'ae1ba650074ab7b9a73f4430c1fc3576a8199383':
Handle null in MatrixCursor.get*()
Diffstat (limited to 'tests/CoreTests')
-rw-r--r-- | tests/CoreTests/android/database/MatrixCursorTest.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/CoreTests/android/database/MatrixCursorTest.java b/tests/CoreTests/android/database/MatrixCursorTest.java index fb8a12f..cddc6c4 100644 --- a/tests/CoreTests/android/database/MatrixCursorTest.java +++ b/tests/CoreTests/android/database/MatrixCursorTest.java @@ -32,6 +32,12 @@ public class MatrixCursorTest extends TestCase { cursor.newRow().add(null); cursor.moveToNext(); assertTrue(cursor.isNull(0)); + assertNull(cursor.getString(0)); + assertEquals(0, cursor.getShort(0)); + assertEquals(0, cursor.getInt(0)); + assertEquals(0L, cursor.getLong(0)); + assertEquals(0.0f, cursor.getFloat(0)); + assertEquals(0.0d, cursor.getDouble(0)); } public void testMatrixCursor() { |