diff --git a/api/current.xml b/api/current.xml index 290bd8037501e..99436bdb38d6f 100644 --- a/api/current.xml +++ b/api/current.xml @@ -131845,6 +131845,673 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + * A mock {@link android.database.Cursor} class that isolates the test code from real + * Cursor implementation. + *

+ *

+ * All methods including ones related to querying the state of the cursor are + * are non-functional and throw {@link java.lang.UnsupportedOperationException}. + *

+ */ public class MockCursor implements Cursor { public int getColumnCount() { throw new UnsupportedOperationException("unimplemented mock method"); diff --git a/tests/AndroidTests/src/com/android/unit_tests/vcard/VCardExporterTests.java b/tests/AndroidTests/src/com/android/unit_tests/vcard/VCardExporterTests.java index 976474f785255..53afb5b83a395 100644 --- a/tests/AndroidTests/src/com/android/unit_tests/vcard/VCardExporterTests.java +++ b/tests/AndroidTests/src/com/android/unit_tests/vcard/VCardExporterTests.java @@ -58,7 +58,7 @@ import android.provider.ContactsContract.CommonDataKinds.Website; import android.test.AndroidTestCase; import android.test.mock.MockContentResolver; import android.test.mock.MockContext; -import android.util.Log; +import android.test.mock.MockCursor; import java.io.ByteArrayInputStream; import java.io.IOException;