### Question:
SQLiteWrapper extends SQLDatabase { @Override public int delete(String table, String whereClause, String[] whereArgs) { try { String sql = new StringBuilder("DELETE FROM \"") .append(table) .append("\"") .append(!Misc.isStringNullOrEmpty(whereClause) ? " WHERE " + whereClause : "") .toString(); this.executeSQLStatement(sql, whereArgs); return getConnection().getChanges(); } catch (SQLiteException e) { return 0; } } SQLiteWrapper(File databaseFile); static SQLiteWrapper open(File databaseFile); SQLiteConnection getConnection(); SQLiteConnection createNewConnection(); @Override void open(); @Override void compactDatabase(); @Override int getVersion(); @Override boolean isOpen(); @Override void beginTransaction(); @Override void endTransaction(); @Override void setTransactionSuccessful(); @Override void close(); @Override void execSQL(String sql); @Override void execSQL(String sql, Object[] bindArgs); @Override int update(String table, ContentValues values, String whereClause, String[] whereArgs); @Override SQLiteCursor rawQuery(String sql, String[] bindArgs); @Override int delete(String table, String whereClause, String[] whereArgs); @Override long insertWithOnConflict(String table, ContentValues initialValues, int conflictAlgorithm); @Override long insert(String table, ContentValues initialValues);  }### Answer:
@Test public void delete() { prepareDatabaseForTesting(); int i = database.delete("docs", " doc_name = ? ", new String[]{"haha"}); Assert.assertEquals(2, i); }