NotificationChannelRegistryDataManager extends DataManager { @WorkerThread public boolean deleteChannel(@NonNull String channelId) { String where = COLUMN_NAME_CHANNEL_ID + " = ?"; int result = delete(TABLE_NAME, where, new String[]{channelId}); if (result == -1) { Logger.error("Unable to remove notification channel: %s", channelId); return false; } return true; } NotificationChannelRegistryDataManager(@NonNull Context context, @NonNull String appKey, @NonNull String dbName); @WorkerThread boolean createChannel(@NonNull NotificationChannelCompat channelCompat); @NonNull @WorkerThread Set<NotificationChannelCompat> getChannels(); @Nullable @WorkerThread NotificationChannelCompat getChannel(@NonNull String channelId); @WorkerThread boolean deleteChannel(@NonNull String channelId);  }
@Test public void testDeleteChannel() { dataManager.createChannel(channel1); Assert.assertTrue(dataManager.deleteChannel(channel1.getId())); }