CalculationTypePage extends BaseDecisionTableColumnPage<ConditionColumnPlugin> { @Override public void isComplete(final Callback<Boolean> callback) { callback.callback(getConstraintValue() != BaseSingleFieldConstraint.TYPE_UNDEFINED); } @Inject  CalculationTypePage(final View view,
                               final TranslationService translationService); @Override String getTitle(); @Override void isComplete(final Callback<Boolean> callback); @Override void prepareView();  }
@Test public void testIsCompleteWhenItIsCompleted() throws Exception { when(plugin.constraintValue()).thenReturn(BaseSingleFieldConstraint.TYPE_LITERAL); page.isComplete(Assert::assertTrue); }
@Test public void testIsCompleteWhenItIsNotCompleted() throws Exception { when(plugin.constraintValue()).thenReturn(BaseSingleFieldConstraint.TYPE_UNDEFINED); page.isComplete(Assert::assertFalse); }