OperatorPage extends BaseDecisionTableColumnPage<ConditionColumnPlugin> { boolean isConstraintValuePredicate() { return plugin().constraintValue() == BaseSingleFieldConstraint.TYPE_PREDICATE; } @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 testIsConstraintValuePredicateWhenConstraintValueIsPredicate() { when(plugin.constraintValue()).thenReturn(BaseSingleFieldConstraint.TYPE_PREDICATE); assertTrue(page.isConstraintValuePredicate()); }
@Test public void testIsConstraintValuePredicateWhenConstraintValueIsNotPredicate() { when(plugin.constraintValue()).thenReturn(BaseSingleFieldConstraint.TYPE_LITERAL); assertFalse(page.isConstraintValuePredicate()); }