@Test public void testNotFound() { final Command command = mock(Command.class); dataSetReadyCallback.setEmptyResultsCallback(command); dataSetReadyCallback.notFound(); verify(command).execute(); verify(dataSetReadyCallback).showErrorMessage(any()); verify(errorCallback, never()).error(any()); }
@Override public void notFound() { setEmptyResults(); showErrorMessage(Constants.INSTANCE.DataSetNotFound(UUID)); GWT.log("DataSet with UUID [ " + UUID + " ] not found."); }
ErrorHandlerBuilder implements DataSetReadyCallback { @Override public void notFound() { setEmptyResults(); showErrorMessage(Constants.INSTANCE.DataSetNotFound(UUID)); GWT.log("DataSet with UUID [ " + UUID + " ] not found."); } }
ErrorHandlerBuilder implements DataSetReadyCallback { @Override public void notFound() { setEmptyResults(); showErrorMessage(Constants.INSTANCE.DataSetNotFound(UUID)); GWT.log("DataSet with UUID [ " + UUID + " ] not found."); }  }
ErrorHandlerBuilder implements DataSetReadyCallback { @Override public void notFound() { setEmptyResults(); showErrorMessage(Constants.INSTANCE.DataSetNotFound(UUID)); GWT.log("DataSet with UUID [ " + UUID + " ] not found."); }  @Inject void setErrorCallback(DefaultWorkbenchErrorCallback errorCallback); void setCallback(Consumer<DataSet> callback); void setUUID(String UUID); void setEmptyResultsCallback(Command emptyResultsCallback); ErrorHandlerBuilder withEmptyResultsCallback(final Command command); ErrorHandlerBuilder withUUID(final String UUID); ErrorHandlerBuilder withDataSetCallback(final Consumer<DataSet> dataSetCallback); @Override void notFound(); void showErrorMessage(final String message); @Override boolean onError(final ClientRuntimeError error); @Override void callback(final DataSet dataSet); }
ErrorHandlerBuilder implements DataSetReadyCallback { @Override public void notFound() { setEmptyResults(); showErrorMessage(Constants.INSTANCE.DataSetNotFound(UUID)); GWT.log("DataSet with UUID [ " + UUID + " ] not found."); }  @Inject void setErrorCallback(DefaultWorkbenchErrorCallback errorCallback); void setCallback(Consumer<DataSet> callback); void setUUID(String UUID); void setEmptyResultsCallback(Command emptyResultsCallback); ErrorHandlerBuilder withEmptyResultsCallback(final Command command); ErrorHandlerBuilder withUUID(final String UUID); ErrorHandlerBuilder withDataSetCallback(final Consumer<DataSet> dataSetCallback); @Override void notFound(); void showErrorMessage(final String message); @Override boolean onError(final ClientRuntimeError error); @Override void callback(final DataSet dataSet);  }