@Test public void renderWarningWhenHasInvalidValues() { when(checker.hasInvalidValues()).thenReturn(true); subject.renderWarningIfNecessary(Lists.newArrayList()); verify(renderer, times(1)).render(any()); }
public void renderWarningIfNecessary(List<SelectChoice> items) { valuesChecker.check(items); if (valuesChecker.hasInvalidValues()) { warningRenderer.render(valuesChecker.getInvalidValues()); } }
SpacesInUnderlyingValuesWarning { public void renderWarningIfNecessary(List<SelectChoice> items) { valuesChecker.check(items); if (valuesChecker.hasInvalidValues()) { warningRenderer.render(valuesChecker.getInvalidValues()); } } }
SpacesInUnderlyingValuesWarning { public void renderWarningIfNecessary(List<SelectChoice> items) { valuesChecker.check(items); if (valuesChecker.hasInvalidValues()) { warningRenderer.render(valuesChecker.getInvalidValues()); } } @VisibleForTesting  SpacesInUnderlyingValuesWarning(UnderlyingValuesChecker valuesChecker, WarningRenderer warningRenderer); }
SpacesInUnderlyingValuesWarning { public void renderWarningIfNecessary(List<SelectChoice> items) { valuesChecker.check(items); if (valuesChecker.hasInvalidValues()) { warningRenderer.render(valuesChecker.getInvalidValues()); } } @VisibleForTesting  SpacesInUnderlyingValuesWarning(UnderlyingValuesChecker valuesChecker, WarningRenderer warningRenderer); static SpacesInUnderlyingValuesWarning forQuestionWidget(QuestionWidget questionWidget); void renderWarningIfNecessary(List<SelectChoice> items); }
SpacesInUnderlyingValuesWarning { public void renderWarningIfNecessary(List<SelectChoice> items) { valuesChecker.check(items); if (valuesChecker.hasInvalidValues()) { warningRenderer.render(valuesChecker.getInvalidValues()); } } @VisibleForTesting  SpacesInUnderlyingValuesWarning(UnderlyingValuesChecker valuesChecker, WarningRenderer warningRenderer); static SpacesInUnderlyingValuesWarning forQuestionWidget(QuestionWidget questionWidget); void renderWarningIfNecessary(List<SelectChoice> items);  }