Code example for SQLiteOpenHelper

Methods: close

0
    } 
 
    @Override 
    public void tearDown() { 
        if (mDbHelper != null) {
            mDbHelper.close();
            mDbHelper = null;
            mCalendarCache = null;
        } 
    } 
 
    public void testGenerateCacheException() { 
        boolean hasException = false;
        try { 
            String value = mCalendarCache.readData(null);
        } catch (CalendarCache.CacheException e) {
            hasException = true;
        } 
        assertTrue(hasException);
    } 
Stop searching for code, let great code find you!  Add Codota to your java IDE