OperatorPage extends BaseDecisionTableColumnPage<ConditionColumnPlugin> { void setupCurrentField() { view.setCurrentField(currentField()); view.currentFieldToggle(hasFactField()); } @Inject  OperatorPage(final View view,
                        final Event<WizardPageStatusChangeEvent> changeEvent,
                        final TranslationService translationService); @Override String getTitle(); @Override void prepareView(); @Override void isComplete(final Callback<Boolean> callback); String getOperator();  }
@Test public void testSetupCurrentFieldWhenFactFieldIsNotNull() throws Exception { final String factField = "factField"; doReturn(factField).when(plugin).getFactField(); page.setupCurrentField(); verify(view).setCurrentField(factField); verify(view).currentFieldToggle(true); }
@Test public void testSetupCurrentFieldWhenFactFieldIsNull() throws Exception { final String factField = null; doReturn(factField).when(plugin).getFactField(); page.setupCurrentField(); verify(view).setCurrentField(""); verify(view).currentFieldToggle(false); }