private Set<String> getFeedbackChannelNames() { try { return getFeedbackHandler().getChannelNames(); } catch (IOException e) { // Probably a serious problem due to local IO related to feedback. No cause to abort the sync so we just log // it as an error. logError("Exception while looking up feedback channel names."); } return Collections.emptySet(); }
private void assertFeedbackChannelNames(FeedbackHandler handler, String... names) throws IOException { Set<String> availableNames = handler.getChannelNames(); assertNotNull(availableNames); assertEquals(availableNames.size(), names.length); for (String name : names) { assertTrue(availableNames.contains(name), "Expected channel '" + name + "' to be present!"); } }