@Test public void testNewShape() { final BPMNDefinition definition = mock(BPMNDefinition.class); tested.newShape(definition); verify(delegateShapeFactory, times(1)).newShape(eq(definition)); verify(delegateShapeFactory, never()).getGlyph(anyString()); }
@Override @SuppressWarnings("all") public Shape newShape(final BPMNDefinition definition) { return delegateShapeFactory.newShape(definition); }
BPMNShapeFactory implements ShapeFactory<BPMNDefinition, Shape> { @Override @SuppressWarnings("all") public Shape newShape(final BPMNDefinition definition) { return delegateShapeFactory.newShape(definition); } }
BPMNShapeFactory implements ShapeFactory<BPMNDefinition, Shape> { @Override @SuppressWarnings("all") public Shape newShape(final BPMNDefinition definition) { return delegateShapeFactory.newShape(definition); } protected  BPMNShapeFactory(); @Inject  BPMNShapeFactory(final BasicShapesFactory basicShapesFactory,
                            final SVGShapeFactory svgShapeFactory,
                            final DelegateShapeFactory<BPMNDefinition, Shape> delegateShapeFactory,
                            final ManagedInstance<WorkItemDefinitionRegistry> workItemDefinitionRegistry,
                            final DefinitionUtils definitionUtils,
                            final StunnerPreferencesRegistries preferencesRegistries);   BPMNShapeFactory(final BasicShapesFactory basicShapesFactory,
                     final SVGShapeFactory svgShapeFactory,
                     final DelegateShapeFactory<BPMNDefinition, Shape> delegateShapeFactory,
                     final Supplier<WorkItemDefinitionRegistry> workItemDefinitionRegistry,
                     final DefinitionUtils definitionUtils,
                     final StunnerPreferencesRegistries preferencesRegistries); }
BPMNShapeFactory implements ShapeFactory<BPMNDefinition, Shape> { @Override @SuppressWarnings("all") public Shape newShape(final BPMNDefinition definition) { return delegateShapeFactory.newShape(definition); } protected  BPMNShapeFactory(); @Inject  BPMNShapeFactory(final BasicShapesFactory basicShapesFactory,
                            final SVGShapeFactory svgShapeFactory,
                            final DelegateShapeFactory<BPMNDefinition, Shape> delegateShapeFactory,
                            final ManagedInstance<WorkItemDefinitionRegistry> workItemDefinitionRegistry,
                            final DefinitionUtils definitionUtils,
                            final StunnerPreferencesRegistries preferencesRegistries);   BPMNShapeFactory(final BasicShapesFactory basicShapesFactory,
                     final SVGShapeFactory svgShapeFactory,
                     final DelegateShapeFactory<BPMNDefinition, Shape> delegateShapeFactory,
                     final Supplier<WorkItemDefinitionRegistry> workItemDefinitionRegistry,
                     final DefinitionUtils definitionUtils,
                     final StunnerPreferencesRegistries preferencesRegistries); @PostConstruct @SuppressWarnings("all") void registerDelegates(); @Override @SuppressWarnings("all") Shape newShape(final BPMNDefinition definition); @Override @SuppressWarnings("all") Glyph getGlyph(final String definitionId); }
BPMNShapeFactory implements ShapeFactory<BPMNDefinition, Shape> { @Override @SuppressWarnings("all") public Shape newShape(final BPMNDefinition definition) { return delegateShapeFactory.newShape(definition); } protected  BPMNShapeFactory(); @Inject  BPMNShapeFactory(final BasicShapesFactory basicShapesFactory,
                            final SVGShapeFactory svgShapeFactory,
                            final DelegateShapeFactory<BPMNDefinition, Shape> delegateShapeFactory,
                            final ManagedInstance<WorkItemDefinitionRegistry> workItemDefinitionRegistry,
                            final DefinitionUtils definitionUtils,
                            final StunnerPreferencesRegistries preferencesRegistries);   BPMNShapeFactory(final BasicShapesFactory basicShapesFactory,
                     final SVGShapeFactory svgShapeFactory,
                     final DelegateShapeFactory<BPMNDefinition, Shape> delegateShapeFactory,
                     final Supplier<WorkItemDefinitionRegistry> workItemDefinitionRegistry,
                     final DefinitionUtils definitionUtils,
                     final StunnerPreferencesRegistries preferencesRegistries); @PostConstruct @SuppressWarnings("all") void registerDelegates(); @Override @SuppressWarnings("all") Shape newShape(final BPMNDefinition definition); @Override @SuppressWarnings("all") Glyph getGlyph(final String definitionId);  }