@Test public void raisesAnErrorOnFailure() { listener.onFailure(); verify(invoker, times(1)).raiseVisibleException("Failed to create the requested pastebin."); }
@Override public void onFailure() { uiInvoker.raiseVisibleException("Failed to create the requested pastebin."); }
PastebinTaskListener implements BackgroundTaskListener { @Override public void onFailure() { uiInvoker.raiseVisibleException("Failed to create the requested pastebin."); } }
PastebinTaskListener implements BackgroundTaskListener { @Override public void onFailure() { uiInvoker.raiseVisibleException("Failed to create the requested pastebin."); } PastebinTaskListener(PastebinTask task, IdeUIInvoker uiInvoker); }
PastebinTaskListener implements BackgroundTaskListener { @Override public void onFailure() { uiInvoker.raiseVisibleException("Failed to create the requested pastebin."); } PastebinTaskListener(PastebinTask task, IdeUIInvoker uiInvoker); @Override void onBegin(); @Override void onSuccess(); @Override void onFailure(); @Override void onInterruption(); }
PastebinTaskListener implements BackgroundTaskListener { @Override public void onFailure() { uiInvoker.raiseVisibleException("Failed to create the requested pastebin."); } PastebinTaskListener(PastebinTask task, IdeUIInvoker uiInvoker); @Override void onBegin(); @Override void onSuccess(); @Override void onFailure(); @Override void onInterruption();  }