Revert "Fix ContentQueryMapTest#testGetRows"
This reverts commit 55111a2fa73d0cfb6d21929801bde8fa048193fe.
...and now it no longer throws the exception.
diff --git a/tests/tests/content/src/android/content/cts/ContentQueryMapTest.java b/tests/tests/content/src/android/content/cts/ContentQueryMapTest.java
index 2c4eb83..d5d9666 100644
--- a/tests/tests/content/src/android/content/cts/ContentQueryMapTest.java
+++ b/tests/tests/content/src/android/content/cts/ContentQueryMapTest.java
@@ -147,11 +147,9 @@
mContentQueryMap = new ContentQueryMap(mCursor, DummyProvider.NAME, false, new Handler());
rows = mContentQueryMap.getRows();
assertFalse(rows.containsKey(NAME0));
- try {
- mContentQueryMap.requery();
- fail("Should throw an IllegalStateException about requerying a closed cursor.");
- } catch (IllegalStateException requeryAlreadyClosedCursor) {
- }
+ mContentQueryMap.requery();
+ rows = mContentQueryMap.getRows();
+ assertFalse(rows.containsKey(NAME0));
}
@TestTargets({