use of org.eclipse.bpmn2.DataOutput in project kie-wb-common by kiegroup.
the class ParsedAssignmentsInfoTest method testCreateInitializedOutputVariablesNoAssociation.
@Test
public void testCreateInitializedOutputVariablesNoAssociation() {
final String DATA_OUTPUT_ID = "_Data-TestOutputX";
final String DATA_OUTPUT_NAME = "Data Test";
final String INIT_OUTPUT_VAR_ID = "Data-Test";
VariableScope variableScope = new FlatVariableScope();
List<InitializedVariable.InitializedOutputVariable> initializedOutputVariables = testedNoAssociation.createInitializedOutputVariables("", variableScope, new HashSet<>());
assertEquals(1, initializedOutputVariables.size());
InitializedVariable.InitializedOutputVariable initializedOutputVariable = initializedOutputVariables.get(0);
DataOutput dataOutput = initializedOutputVariable.getDataOutput();
DataOutputAssociation dataOutputAssociation = initializedOutputVariable.getDataOutputAssociation();
String dataOutputID = dataOutput.getId();
String dataOutputName = dataOutput.getName();
String initVarID = initializedOutputVariable.getIdentifier();
assertNull(dataOutputAssociation);
assertEquals(dataOutputID, DATA_OUTPUT_ID);
assertEquals(dataOutputName, DATA_OUTPUT_NAME);
assertEquals(initVarID, INIT_OUTPUT_VAR_ID);
}
Aggregations