use of org.talend.daikon.runtime.RuntimeInfo in project components by Talend.
the class GoogleDriveDatastoreDefinitionTest method testGetRuntimeInfo.
@Test
public void testGetRuntimeInfo() throws Exception {
RuntimeInfo rt = def.getRuntimeInfo(new GoogleDriveDatastoreProperties("test"));
assertNotNull(rt);
assertEquals(GoogleDriveComponentDefinition.DATASTORE_RUNTIME_CLASS, rt.getRuntimeClassName());
}
use of org.talend.daikon.runtime.RuntimeInfo in project components by Talend.
the class GoogleDriveConnectionDefinitionTest method testGetRuntimeInfo.
@Test
public void testGetRuntimeInfo() throws Exception {
RuntimeInfo rti = def.getRuntimeInfo(ExecutionEngine.DI, new GoogleDriveConnectionProperties("test"), ConnectorTopology.NONE);
assertNotNull(rti);
}
use of org.talend.daikon.runtime.RuntimeInfo in project components by Talend.
the class GoogleDriveDatasetDefinitionTest method testGetRuntimeInfo.
@Test
public void testGetRuntimeInfo() throws Exception {
RuntimeInfo rt = def.getRuntimeInfo(new GoogleDriveDatasetProperties("test"));
assertNotNull(rt);
assertEquals(GoogleDriveComponentDefinition.DATASET_RUNTIME_CLASS, rt.getRuntimeClassName());
}
use of org.talend.daikon.runtime.RuntimeInfo in project components by Talend.
the class GoogleDriveInputDefinitionTest method testGetRuntimeInfo.
@Test
public void testGetRuntimeInfo() throws Exception {
RuntimeInfo rt = def.getRuntimeInfo(ExecutionEngine.DI, null, null);
assertNotNull(rt);
assertEquals(GoogleDriveComponentDefinition.DATA_SOURCE_CLASS, rt.getRuntimeClassName());
}
use of org.talend.daikon.runtime.RuntimeInfo in project components by Talend.
the class ComponentDefinitionTest method testAllExecutionEngine.
@Test
public void testAllExecutionEngine() {
// A component that supports all execution engines.
TestComponentDefinition cd = new TestComponentDefinition(true);
for (ExecutionEngine engine : ExecutionEngine.values()) {
assertThat(cd.getSupportedExecutionEngines(), hasItem(engine));
assertTrue(cd.isSupportingExecutionEngines(engine));
// Nothing is returned, but there isn't any exception.
RuntimeInfo ri = cd.getRuntimeInfo(engine, null, null);
assertThat(ri, nullValue());
}
}
Aggregations