Search in sources :

Example 61 with RuntimeInfo

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());
}
Also used : RuntimeInfo(org.talend.daikon.runtime.RuntimeInfo) Test(org.junit.Test)

Example 62 with RuntimeInfo

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);
}
Also used : RuntimeInfo(org.talend.daikon.runtime.RuntimeInfo) Test(org.junit.Test)

Example 63 with RuntimeInfo

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());
}
Also used : RuntimeInfo(org.talend.daikon.runtime.RuntimeInfo) Test(org.junit.Test)

Example 64 with RuntimeInfo

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());
}
Also used : RuntimeInfo(org.talend.daikon.runtime.RuntimeInfo) Test(org.junit.Test)

Example 65 with RuntimeInfo

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());
    }
}
Also used : ExecutionEngine(org.talend.components.api.component.runtime.ExecutionEngine) RuntimeInfo(org.talend.daikon.runtime.RuntimeInfo) TestComponentDefinition(org.talend.components.api.testcomponent.TestComponentDefinition) Test(org.junit.Test)

Aggregations

RuntimeInfo (org.talend.daikon.runtime.RuntimeInfo)131 Test (org.junit.Test)120 SandboxedInstance (org.talend.daikon.sandbox.SandboxedInstance)27 Ignore (org.junit.Ignore)21 JarRuntimeInfo (org.talend.components.api.component.runtime.JarRuntimeInfo)17 ArrayList (java.util.ArrayList)13 AllSetting (org.talend.components.jdbc.runtime.setting.AllSetting)11 IndexedRecord (org.apache.avro.generic.IndexedRecord)8 ExecutionEngine (org.talend.components.api.component.runtime.ExecutionEngine)8 DatasetRuntime (org.talend.components.common.dataset.runtime.DatasetRuntime)7 URL (java.net.URL)6 Schema (org.apache.avro.Schema)6 ComponentException (org.talend.components.api.exception.ComponentException)5 ValidationResult (org.talend.daikon.properties.ValidationResult)5 File (java.io.File)3 NamedThing (org.talend.daikon.NamedThing)3 SimpleNamedThing (org.talend.daikon.SimpleNamedThing)3 TalendRuntimeException (org.talend.daikon.exception.TalendRuntimeException)3 FileWriter (java.io.FileWriter)2 GenericRecord (org.apache.avro.generic.GenericRecord)2