AttributeColumnPage extends BaseDecisionTableColumnPage<AttributeColumnPlugin> { @Override public void isComplete(final Callback<Boolean> callback) { final boolean hasAttribute = !nil(plugin().getAttribute()); callback.callback(hasAttribute); } @Inject  AttributeColumnPage(final View view,
                               final TranslationService translationService); @Override String getTitle(); @Override void isComplete(final Callback<Boolean> callback); @Override void prepareView();  }
@Test public void testIsCompleteWhenAttributeIsNull() { when(plugin.getAttribute()).thenReturn(null); page.isComplete(Assert::assertFalse); }
@Test public void testIsCompleteWhenAttributeIsBlank() { when(plugin.getAttribute()).thenReturn(null); page.isComplete(Assert::assertFalse); }
@Test public void testIsCompleteWhenAttributeIsNotNull() { when(plugin.getAttribute()).thenReturn(Attribute.SALIENCE.getAttributeName()); page.isComplete(Assert::assertTrue); }