use of org.talend.components.api.service.common.ComponentServiceImpl in project components by Talend.
the class SalesforceTestBase method getComponentService.
// default implementation for pure java test. Shall be overriden of Spring or OSGI tests
@Override
public ComponentService getComponentService() {
if (componentService == null) {
DefinitionRegistry testComponentRegistry = new DefinitionRegistry();
// register component
testComponentRegistry.registerComponentFamilyDefinition(new SalesforceFamilyDefinition());
componentService = new ComponentServiceImpl(testComponentRegistry);
}
return componentService;
}
use of org.talend.components.api.service.common.ComponentServiceImpl in project components by Talend.
the class SnowflakeTestIT method getComponentService.
@Override
public ComponentService getComponentService() {
if (componentService == null) {
DefinitionRegistry testComponentRegistry = new DefinitionRegistry();
// register component
testComponentRegistry.registerComponentFamilyDefinition(new SnowflakeFamilyDefinition());
componentService = new ComponentServiceImpl(testComponentRegistry);
}
return componentService;
}
Aggregations