private int deleteCategory(Category category) { return delete( "delete", CategoriesProvider.uriCategories(), Tables.Categories.ID + "=?", category.getId()); }
private Category insertCategory() { final Category category = new Category(); category.setTitle("a"); insert(CategoriesProvider.uriCategories(), category); return category; }
@Test(expected = IllegalArgumentException.class) public void update_throwsIllegalArgumentException() { update(CategoriesProvider.uriCategories(), new ContentValues(), null); }