use of com.evolveum.midpoint.web.component.prism.ItemWrapper in project midpoint by Evolveum.
the class TestIntegrationObjectWrapperFactory method assertItemWrapperFullConrol.
private <C extends Containerable> void assertItemWrapperFullConrol(ContainerWrapper<C> containerWrapper, QName propName, boolean visible) {
ItemWrapper itemWrapper = containerWrapper.findPropertyWrapper(propName);
assertEquals("Wrong " + propName + " readOnly", Boolean.FALSE, (Boolean) itemWrapper.isReadonly());
assertEquals("Wrong " + propName + " visible", visible, itemWrapper.isVisible());
assertEquals("Wrong " + propName + " definition.canRead", Boolean.TRUE, (Boolean) itemWrapper.getItemDefinition().canRead());
assertEquals("Wrong " + propName + " definition.canAdd", Boolean.TRUE, (Boolean) itemWrapper.getItemDefinition().canAdd());
assertEquals("Wrong " + propName + " definition.canModify", Boolean.TRUE, (Boolean) itemWrapper.getItemDefinition().canModify());
}
Aggregations