MessageCenterResolver extends UrbanAirshipResolver { @NonNull Set<String> getDeletedMessageIds() { Cursor cursor = this.query(this.uri, null, MessageCenterDataManager.MessageTable.COLUMN_NAME_DELETED + " = ?", new String[] { TRUE_VALUE }, null); return getMessageIdsFromCursor(cursor); } MessageCenterResolver(Context context);   }
@Test public void testGetDeletedMessageIds() { Set<String> keys = new HashSet<>(); keys.add("1_message_id"); keys.add("2_message_id"); keys.add("6_message_id"); int updated = resolver.markMessagesDeleted(keys); assertEquals(keys.size(), updated); assertEquals(keys, resolver.getDeletedMessageIds()); assertEquals(10, resolver.getMessages().size()); }