FileDocCategorySizeDatePackage
MockContentProvider.javaAPI DocAndroid 1.5 API3981Wed May 06 22:42:02 BST 2009android.test.mock

MockContentProvider

public class MockContentProvider extends Object implements android.content.IContentProvider
Mock implementation of IContentProvider that does nothing. All methods are non-functional and throw {@link java.lang.UnsupportedOperationException}. Tests can extend this class to implement behavior needed for tests.
hide
- Because IContentProvider hides bulkQuery(), this doesn't pass through JavaDoc without generating errors.

Fields Summary
Constructors Summary
Methods Summary
public android.os.IBinderasBinder()

        throw new UnsupportedOperationException("unimplemented mock method");
    
public intbulkInsert(android.net.Uri url, android.content.ContentValues[] initialValues)

        // TODO Auto-generated method stub
        return 0;
    
public android.database.IBulkCursorbulkQuery(android.net.Uri url, java.lang.String[] projection, java.lang.String selection, java.lang.String[] selectionArgs, java.lang.String sortOrder, android.database.IContentObserver observer, android.database.CursorWindow window)

        throw new UnsupportedOperationException("unimplemented mock method");
    
public intdelete(android.net.Uri url, java.lang.String selection, java.lang.String[] selectionArgs)

        throw new UnsupportedOperationException("unimplemented mock method");
    
public android.content.ISyncAdaptergetSyncAdapter()

        throw new UnsupportedOperationException("unimplemented mock method");
    
public java.lang.StringgetType(android.net.Uri url)

        throw new UnsupportedOperationException("unimplemented mock method");
    
public android.net.Uriinsert(android.net.Uri url, android.content.ContentValues initialValues)

        throw new UnsupportedOperationException("unimplemented mock method");
    
public android.content.res.AssetFileDescriptoropenAssetFile(android.net.Uri uri, java.lang.String mode)

        throw new UnsupportedOperationException("unimplemented mock method");
    
public android.os.ParcelFileDescriptoropenFile(android.net.Uri url, java.lang.String mode)

        throw new UnsupportedOperationException("unimplemented mock method");
    
public android.database.Cursorquery(android.net.Uri url, java.lang.String[] projection, java.lang.String selection, java.lang.String[] selectionArgs, java.lang.String sortOrder)

        throw new UnsupportedOperationException("unimplemented mock method");
    
public intupdate(android.net.Uri url, android.content.ContentValues values, java.lang.String selection, java.lang.String[] selectionArgs)

        throw new UnsupportedOperationException("unimplemented mock method");