use of org.talend.components.jira.runtime.JiraSource in project components by Talend.
the class JiraReaderTestIT method setupSource.
private void setupSource() {
source = new JiraSource();
source.initialize(container, properties);
}
use of org.talend.components.jira.runtime.JiraSource in project components by Talend.
the class JiraReaderTest method testGetCurrentSource.
/**
* Checks {@link JiraReader#getCurrentSource()} returns {@link Source}, which was passed to constructor as argument
* without any changes
*
* @throws IOException in case of any exception
*/
@Test
public void testGetCurrentSource() throws IOException {
JiraProjectsReader jiraReader = new JiraProjectsReader(source);
JiraSource currentSource = jiraReader.getCurrentSource();
jiraReader.close();
assertEquals(source, currentSource);
}
use of org.talend.components.jira.runtime.JiraSource in project components by Talend.
the class JiraReaderTest method setupSource.
private void setupSource() {
source = new JiraSource();
source.initialize(container, properties);
}
use of org.talend.components.jira.runtime.JiraSource in project components by Talend.
the class TJiraInputDefinitionTest method testGetRuntime.
/**
* Check {@link TJiraInputDefinition#getRuntime()} returns instance of {@link JiraSource}
*/
@Test
public void testGetRuntime() {
TJiraInputDefinition definition = new TJiraInputDefinition();
RuntimeInfo runtimeInfo = definition.getRuntimeInfo(ExecutionEngine.DI, null, ConnectorTopology.OUTGOING);
SandboxedInstance sandboxedInstance = RuntimeUtil.createRuntimeClass(runtimeInfo, definition.getClass().getClassLoader());
Source source = (Source) sandboxedInstance.getInstance();
assertThat(source, is(instanceOf(JiraSource.class)));
}
Aggregations