use of com.qcadoo.view.internal.api.ContextualHelpService in project qcadoo by qcadoo.
the class AbstractPatternTest method getComponentDefinition.
public ComponentDefinition getComponentDefinition(final String name, final String fieldPath, final String sourceFieldPath, final ContainerPattern parent, final ViewDefinition viewDefinition) {
ComponentDefinition componentDefinition = new ComponentDefinition();
componentDefinition.setName(name);
componentDefinition.setFieldPath(fieldPath);
componentDefinition.setSourceFieldPath(sourceFieldPath);
componentDefinition.setParent(parent);
TranslationService translationService = mock(TranslationService.class);
componentDefinition.setTranslationService(translationService);
ContextualHelpService contextualHelpService = mock(ContextualHelpService.class);
componentDefinition.setContextualHelpService(contextualHelpService);
if (viewDefinition != null) {
componentDefinition.setViewDefinition(viewDefinition);
} else {
componentDefinition.setViewDefinition(mock(InternalViewDefinition.class));
}
return componentDefinition;
}
Aggregations