use of org.kie.workbench.common.stunner.bpmn.definition.property.dimensions.RectangleDimensionsSet in project kie-wb-common by kiegroup.
the class BasePropertyReaderTest method testGetRectangleDimensionsSet.
@Test
public void testGetRectangleDimensionsSet() {
RectangleDimensionsSet rectangleDimensionsSet = tested.getRectangleDimensionsSet();
assertEquals(65.0d, rectangleDimensionsSet.getWidth().getValue(), 0d);
assertEquals(354.4710174560547d, rectangleDimensionsSet.getHeight().getValue(), 0d);
}
use of org.kie.workbench.common.stunner.bpmn.definition.property.dimensions.RectangleDimensionsSet in project kie-wb-common by kiegroup.
the class LanePropertyReaderTest method testGetRectangleDimensionsSet.
@Test
public void testGetRectangleDimensionsSet() {
LanePropertyReader propertyReader = new LanePropertyReader(lane, diagram, shape, RESOLUTION_FACTOR);
RectangleDimensionsSet dimensionsSet = propertyReader.getRectangleDimensionsSet();
assertRectangleDimensions(WIDTH * RESOLUTION_FACTOR, HEIGHT * RESOLUTION_FACTOR, dimensionsSet);
}
use of org.kie.workbench.common.stunner.bpmn.definition.property.dimensions.RectangleDimensionsSet in project kie-wb-common by kiegroup.
the class LanePropertyReaderTest method testGetRectangleDimensionsSetWithParentShape.
@Test
public void testGetRectangleDimensionsSetWithParentShape() {
LanePropertyReader propertyReader = new LanePropertyReader(lane, diagram, shape, parentLaneShape, RESOLUTION_FACTOR);
RectangleDimensionsSet dimensionsSet = propertyReader.getRectangleDimensionsSet();
assertRectangleDimensions(PARENT_WIDTH * RESOLUTION_FACTOR, HEIGHT * RESOLUTION_FACTOR, dimensionsSet);
}
use of org.kie.workbench.common.stunner.bpmn.definition.property.dimensions.RectangleDimensionsSet in project kie-wb-common by kiegroup.
the class ReusableSubprocessConverterTest method setUp.
@Before
public void setUp() {
when(propertyWriterFactory.of(any(CallActivity.class))).thenReturn(propertyWriter);
DataIOSet ioSet = mock(DataIOSet.class);
when(ioSet.getAssignmentsinfo()).thenReturn(ASSIGNMENTS_INFO);
final ReusableSubprocess definition = new ReusableSubprocess(new BPMNGeneralSet(NAME, DOCUMENTATION), new ReusableSubprocessTaskExecutionSet(new CalledElement(CALLED_ELEMENT), new IsCase(IS_CASE), new Independent(INDEPENDENT), new AbortParent(ABORT_PARENT), new WaitForCompletion(WAIT_FOR_COMPLETION), new IsAsync(IS_ASYNC), new AdHocAutostart(IS_ADHOC_AUTOSTART), new IsMultipleInstance(IS_MULTIPLE_INSTANCE), new MultipleInstanceExecutionMode(SEQUENTIAL), new MultipleInstanceCollectionInput(COLLECTION_INPUT), new MultipleInstanceDataInput(DATA_INPUT), new MultipleInstanceCollectionOutput(COLLECTION_OUTPUT), new MultipleInstanceDataOutput(DATA_OUTPUT), new MultipleInstanceCompletionCondition(COMPLETION_CONDITION), ON_ENTRY_ACTION, ON_EXIT_ACTION, new SLADueDate(SLA_DUE_DATE)), ioSet, new BackgroundSet(), new FontSet(), new RectangleDimensionsSet(), SIMULATION_SET, new AdvancedData());
final View<BaseReusableSubprocess> view = new ViewImpl<>(definition, BOUNDS);
node = new NodeImpl<>(UUID);
node.setContent(view);
converter = new ReusableSubprocessConverter(propertyWriterFactory);
}
use of org.kie.workbench.common.stunner.bpmn.definition.property.dimensions.RectangleDimensionsSet in project kie-wb-common by kiegroup.
the class GenericServiceTaskTest method setAndGetExecutionSet.
@Test
public void setAndGetExecutionSet() {
GenericServiceTask genericServiceTask = new GenericServiceTask(new TaskGeneralSet(new Name("Service Task"), new Documentation("")), new GenericServiceTaskExecutionSet(), new BackgroundSet(), new FontSet(), new RectangleDimensionsSet(), new SimulationSet(), new TaskType(TaskTypes.SERVICE_TASK), new AdvancedData());
assertEquals(new GenericServiceTaskExecutionSet(), genericServiceTask.getExecutionSet());
GenericServiceTaskExecutionSet set = new GenericServiceTaskExecutionSet();
genericServiceTask.setExecutionSet(set);
assertEquals(set, genericServiceTask.getExecutionSet());
}
Aggregations