use of org.talend.core.model.process.IElement in project tdi-studio-se by Talend.
the class ExpressionTest method createMockParameterWithNodeElement.
private ElementParameter createMockParameterWithNodeElement(String paraName) {
ElementParameter param = mock(ElementParameter.class);
IElement testElement = mock(INode.class);
when(param.getName()).thenReturn(paraName);
when(param.getElement()).thenReturn(testElement);
when(param.getElement().getElementName()).thenReturn("testComponent");
return param;
}
use of org.talend.core.model.process.IElement in project tdi-studio-se by Talend.
the class ExpressionTest method createMockParameter.
private ElementParameter createMockParameter(String paraName, String value) {
ElementParameter param = mock(ElementParameter.class);
IElement testElement = mock(IElement.class);
when(param.getName()).thenReturn(paraName);
when(param.getValue()).thenReturn(value);
when(param.getElement()).thenReturn(testElement);
when(param.getElement().getElementName()).thenReturn("testComponent");
return param;
}
Aggregations