use of org.kie.workbench.common.stunner.bpmn.definition.DirectionalAssociation in project kie-wb-common by kiegroup.
the class AssociationPropertyWriterTest method testSetOneDirectionAssociation.
@Test
public void testSetOneDirectionAssociation() {
DirectionalAssociation directionalAssociation = new DirectionalAssociation();
associationWriter.setDirectionAssociation(directionalAssociation);
verify(association).setAssociationDirection(AssociationDirection.ONE);
}
use of org.kie.workbench.common.stunner.bpmn.definition.DirectionalAssociation 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