Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
philippfromme committed Nov 27, 2018
1 parent d279fa9 commit f13afd1
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@ describe('modeling/behavior - DataInputAssociationBehavior and DataOutputAssocia
dataOutputAssociationBo = dataOutputAssociation.businessObject;

expect(taskBo.ioSpecification).to.exist;

expect(taskBo.ioSpecification.dataInputs).to.have.length(1);
expect(taskBo.ioSpecification.inputSets).to.have.length(1);
expect(taskBo.ioSpecification.inputSets[0].dataInputRefs).to.have.length(1);

expect(taskBo.ioSpecification.dataOutputs).to.have.length(1);
expect(taskBo.ioSpecification.outputSets).to.have.length(1);
expect(taskBo.ioSpecification.outputSets[0].dataOutputRefs).to.have.length(1);
Expand Down Expand Up @@ -81,11 +83,17 @@ describe('modeling/behavior - DataInputAssociationBehavior and DataOutputAssocia
var dataInputAssociationBo = dataInputAssociation.businessObject;

expect(taskBo.ioSpecification).to.exist;

expect(taskBo.ioSpecification.dataInputs).to.have.length(1);
expect(taskBo.ioSpecification.dataOutputs).to.not.exist;

expect(taskBo.ioSpecification.inputSets).to.exist;
expect(taskBo.ioSpecification.inputSets).to.have.length(1);
expect(taskBo.ioSpecification.inputSets[0].dataInputRefs).to.have.length(1);
expect(taskBo.ioSpecification.dataOutputs).to.not.exist;
expect(taskBo.ioSpecification.outputSets).to.not.exist;

expect(taskBo.ioSpecification.outputSets).to.exist;
expect(taskBo.ioSpecification.outputSets).to.have.length(1);
expect(taskBo.ioSpecification.outputSets[0].dataOutputRefs).to.have.length(0);

expect(dataInputAssociationBo.targetRef).to.exist;
expect(dataInputAssociationBo.targetRef).to.eql(getDataInput(taskBo, dataInputAssociationBo.targetRef));
Expand Down

0 comments on commit f13afd1

Please sign in to comment.