Code example for IsolatedContext

0
        final String filenamePrefix = "test.";
        RenamingDelegatingContext targetContextWrapper = new RenamingDelegatingContext(new MockContext2(), // The context that most methods are
                                                                                                           //delegated to 
                getContext(), // The context that file methods are delegated to
                filenamePrefix);
        mDatabaseContext = new IsolatedContext(mResolver, targetContextWrapper);
 
        onCreateDatabase(mDatabaseContext);
 
        mDBTestCase.setUp();
    } 
 
    /* 
     * (non-Javadoc) 
     *  
     * @see org.dbunit.DatabaseTestCase#tearDown() 
     */ 
    protected void tearDown() throws Exception { 
        mDBTestCase.tearDown();
        super.tearDown(); 
    }