use of org.talend.components.api.service.common.DefinitionRegistry in project components by Talend.
the class AzureStorageGenericBase method getComponentService.
public ComponentService getComponentService() {
// return compServ;
if (componentService == null) {
DefinitionRegistry testComponentRegistry = new DefinitionRegistry();
testComponentRegistry.registerComponentFamilyDefinition(new AzureStorageFamilyDefinition());
componentService = new ComponentServiceImpl(testComponentRegistry);
}
return componentService;
}
use of org.talend.components.api.service.common.DefinitionRegistry in project components by Talend.
the class JiraReaderTest method setupService.
/**
* Creates {@link ComponentService} for tests
*/
@BeforeClass
public static void setupService() {
DefinitionRegistry registry = new DefinitionRegistry();
registry.registerDefinition(Arrays.asList(new TJiraInputDefinition()));
componentService = new ComponentServiceImpl(registry);
}
use of org.talend.components.api.service.common.DefinitionRegistry in project components by Talend.
the class MarketoTestBase method getDefinitionRegistry.
@Override
public DefinitionRegistryService getDefinitionRegistry() {
if (testComponentRegistry == null) {
testComponentRegistry = new DefinitionRegistry();
testComponentRegistry.registerComponentFamilyDefinition(new MarketoFamilyDefinition());
}
return testComponentRegistry;
}
use of org.talend.components.api.service.common.DefinitionRegistry in project components by Talend.
the class SalesforceTest method getDefinitionRegistry.
@Override
public DefinitionRegistryService getDefinitionRegistry() {
if (testComponentRegistry == null) {
testComponentRegistry = new DefinitionRegistry();
testComponentRegistry.registerComponentFamilyDefinition(new SalesforceFamilyDefinition());
}
return testComponentRegistry;
}
use of org.talend.components.api.service.common.DefinitionRegistry 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;
}
Aggregations