OperatorPage extends BaseDecisionTableColumnPage<ConditionColumnPlugin> { boolean hasFactField() { return !nil(plugin().getFactField()); } @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 testCanSetOperatorWhenEditingColIsBlank() { when(plugin.getFactField()).thenReturn(""); assertFalse(page.hasFactField()); }
@Test public void testCanSetOperatorWhenEditingColIsNull() { when(plugin.getFactField()).thenReturn(null); assertFalse(page.hasFactField()); }
@Test public void testCanSetOperatorWhenEditingColIsNotNull() { when(plugin.getFactField()).thenReturn("factField"); assertTrue(page.hasFactField()); }