use of org.talend.components.api.service.common.DefinitionRegistry in project components by Talend.
the class CouchbaseFamilyDefinitionTest method testInstall.
@Test
public void testInstall() {
DefinitionRegistry ctx = new DefinitionRegistry();
definition.install(ctx);
Assert.assertEquals(2, ctx.getDefinitions().size());
}
use of org.talend.components.api.service.common.DefinitionRegistry in project components by Talend.
the class JDBCTest method getDefinitionRegistry.
@Override
public DefinitionRegistryService getDefinitionRegistry() {
if (testComponentRegistry == null) {
testComponentRegistry = new DefinitionRegistry();
testComponentRegistry.registerComponentFamilyDefinition(new JDBCFamilyDefinition());
}
return testComponentRegistry;
}
use of org.talend.components.api.service.common.DefinitionRegistry in project components by Talend.
the class JiraReaderTestIT 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 FileDelimitedTestBasic method getComponentService.
@Override
public ComponentService getComponentService() {
if (componentService == null) {
DefinitionRegistry testComponentRegistry = new DefinitionRegistry();
testComponentRegistry.registerComponentFamilyDefinition(new FileDelimitedFamilyDefinition());
componentService = new ComponentServiceImpl(testComponentRegistry);
}
return componentService;
}
use of org.talend.components.api.service.common.DefinitionRegistry in project components by Talend.
the class TFilterRowTest method getComponentService.
// default implementation for pure java test.
public ComponentService getComponentService() {
if (componentService == null) {
DefinitionRegistry testComponentRegistry = new DefinitionRegistry();
testComponentRegistry.registerComponentFamilyDefinition(new TFilterRowFamilyDefinition());
componentService = new ComponentServiceImpl(testComponentRegistry);
}
return componentService;
}
Aggregations