AttributeColumnPage extends BaseDecisionTableColumnPage<AttributeColumnPlugin> { List<String> getAttributes() { return removeAttributesAlreadyAdded(rawAttributes()); } @Inject  AttributeColumnPage(final View view,
                               final TranslationService translationService); @Override String getTitle(); @Override void isComplete(final Callback<Boolean> callback); @Override void prepareView();  }
@Test public void testGetAttributesWhenThereAreReservedAttributes() { reservedAttributeNamesMock(Attribute.SALIENCE.getAttributeName(), Attribute.AGENDA_GROUP.getAttributeName()); final List<String> result = page.getAttributes(); final List<String> expected = attributesList(); expected.remove(Attribute.AGENDA_GROUP.getAttributeName()); expected.remove(Attribute.SALIENCE.getAttributeName()); assertEquals(expected, result); }
@Test public void testGetAttributesWhenThereIsNoReservedAttribute() { reservedAttributeNamesMock(); final List<String> result = page.getAttributes(); final List<String> expected = attributesList(); assertEquals(expected, result); }