use of org.kie.workbench.common.stunner.bpmn.definition.NonDirectionalAssociation in project kie-wb-common by kiegroup.
the class AssociationPropertyWriterTest method testSetNoneDirectionAssociation.
@Test
public void testSetNoneDirectionAssociation() {
NonDirectionalAssociation nonDirectionalAssociation = new NonDirectionalAssociation();
associationWriter.setDirectionAssociation(nonDirectionalAssociation);
verify(association).setAssociationDirection(AssociationDirection.NONE);
}
use of org.kie.workbench.common.stunner.bpmn.definition.NonDirectionalAssociation in project kie-wb-common by kiegroup.
the class AssociationConnectorDefTest method getDirection.
@Test
public void getDirection() {
ConnectorShapeDef.Direction direction = tested.getDirection(new DirectionalAssociation());
assertEquals(ConnectorShapeDef.Direction.ONE, direction);
direction = tested.getDirection(new NonDirectionalAssociation());
assertEquals(ConnectorShapeDef.Direction.NONE, direction);
direction = tested.getDirection(mock(Association.class));
assertEquals(ConnectorShapeDef.Direction.ONE, direction);
}
Aggregations