FieldPage extends BaseDecisionTableColumnPage<T> { void fieldBindingWarningToggle(final boolean isFieldBindingValid) { if (!isFieldBindingValid) { view.showFieldBindingWarning(); } else { view.hideFieldBindingWarning(); } } @Inject  FieldPage(final View view,
                     final TranslationService translationService); @Override String getTitle(); @Override void isComplete(final Callback<Boolean> callback); @Override void prepareView(); String getFactField();  }
@Test public void testFieldBindingWarningToggleWhenFieldBindingIsValid() { final boolean isFieldBindingValid = true; page.fieldBindingWarningToggle(isFieldBindingValid); verify(view, never()).showFieldBindingWarning(); verify(view).hideFieldBindingWarning(); }
@Test public void testFieldBindingWarningToggleWhenFieldBindingIsNotValid() { final boolean isFieldBindingValid = false; page.fieldBindingWarningToggle(isFieldBindingValid); verify(view).showFieldBindingWarning(); verify(view, never()).hideFieldBindingWarning(); }