use of org.talend.core.model.process.EConnectionType in project tdi-studio-se by Talend.
the class ConnectionCreateActionTest method testRun4.
private void testRun4() {
EConnectionType ct = EConnectionType.TABLE;
String connectionName = null;
if (ct.hasConnectionCategory(IConnectionCategory.FLOW)) {
connectionName = node.getProcess().generateUniqueConnectionName(Process.DEFAULT_ROW_CONNECTION_NAME);
// 61
assertEquals(connectionName, "row1");
} else {
connectionName = curNodeConnector.getLinkName();
}
}
use of org.talend.core.model.process.EConnectionType in project tdi-studio-se by Talend.
the class ConnectionCreateActionTest method testRun3.
private void testRun3() {
EConnectionType ct = EConnectionType.TABLE;
String text = "TALEND.JOBS (Table)";
//$NON-NLS-1$
int end = text.lastIndexOf("(") - 1;
int start = 0;
String connectionName = text.substring(start, end);
// 3
assertEquals(connectionName, "TALEND.JOBS");
IMetadataTable meta = node.getMetadataList().get(0);
meta.setAttachedConnector(curNodeConnector.getName());
}
Aggregations