Search in sources :

Example 11 with ComponentServiceImpl

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;
}
Also used : SalesforceFamilyDefinition(org.talend.components.salesforce.SalesforceFamilyDefinition) ComponentServiceImpl(org.talend.components.api.service.common.ComponentServiceImpl) DefinitionRegistry(org.talend.components.api.service.common.DefinitionRegistry)

Example 12 with ComponentServiceImpl

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;
}
Also used : SnowflakeFamilyDefinition(org.talend.components.snowflake.SnowflakeFamilyDefinition) ComponentServiceImpl(org.talend.components.api.service.common.ComponentServiceImpl) DefinitionRegistry(org.talend.components.api.service.common.DefinitionRegistry)

Aggregations

ComponentServiceImpl (org.talend.components.api.service.common.ComponentServiceImpl)12 DefinitionRegistry (org.talend.components.api.service.common.DefinitionRegistry)12 BeforeClass (org.junit.BeforeClass)2 TJiraInputDefinition (org.talend.components.jira.tjirainput.TJiraInputDefinition)2 SalesforceFamilyDefinition (org.talend.components.salesforce.SalesforceFamilyDefinition)2 SimpleComponentDefinition (org.talend.components.api.test.SimpleComponentDefinition)1 SnowflakeFamilyDefinition (org.talend.components.snowflake.SnowflakeFamilyDefinition)1