@Test @SuppressWarnings("unchecked") public void testExecuteUpdateDomainObjectProperty() { handler.bind(session); handler.executeUpdateDomainObjectProperty(domainObject, FIELD_NAME, FIELD_VALUE); final InOrder inOrder = inOrder(domainObjectCanvasListener, commandFactory, sessionCommandManager, domainObjectCanvasListener); inOrder.verify(commandFactory).updateDomainObjectPropertyValue(domainObject, FIELD_NAME, FIELD_VALUE); inOrder.verify(domainObjectCanvasListener).startProcessing(); inOrder.verify(sessionCommandManager).execute(abstractCanvasHandler, updateDomainObjectPropertyCommand); inOrder.verify(domainObjectCanvasListener).endProcessing(); }
@SuppressWarnings("unchecked") public boolean executeUpdateDomainObjectProperty(final DomainObject domainObject, final String fieldName, final Object value) { return execute(commandFactory.updateDomainObjectPropertyValue(domainObject, fieldName, value), domainObjectCanvasListener); }
FormsCanvasSessionHandler { @SuppressWarnings("unchecked") public boolean executeUpdateDomainObjectProperty(final DomainObject domainObject, final String fieldName, final Object value) { return execute(commandFactory.updateDomainObjectPropertyValue(domainObject, fieldName, value), domainObjectCanvasListener); } }
FormsCanvasSessionHandler { @SuppressWarnings("unchecked") public boolean executeUpdateDomainObjectProperty(final DomainObject domainObject, final String fieldName, final Object value) { return execute(commandFactory.updateDomainObjectPropertyValue(domainObject, fieldName, value), domainObjectCanvasListener); } @Inject  FormsCanvasSessionHandler(final DefinitionManager definitionManager,
                                     final CanvasCommandFactory<AbstractCanvasHandler> commandFactory,
                                     final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager); }
FormsCanvasSessionHandler { @SuppressWarnings("unchecked") public boolean executeUpdateDomainObjectProperty(final DomainObject domainObject, final String fieldName, final Object value) { return execute(commandFactory.updateDomainObjectPropertyValue(domainObject, fieldName, value), domainObjectCanvasListener); } @Inject  FormsCanvasSessionHandler(final DefinitionManager definitionManager,
                                     final CanvasCommandFactory<AbstractCanvasHandler> commandFactory,
                                     final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager); FormsCanvasSessionHandler setRenderer(FormRenderer renderer); FormsCanvasSessionHandler bind(final ClientSession session); FormsCanvasSessionHandler unbind(); @PreDestroy void destroy(); void show(); @SuppressWarnings("unchecked") void show(final Command callback); @SuppressWarnings("unchecked") boolean executeUpdateProperty(final Element<? extends Definition<?>> element,
                                         final String fieldName,
                                         final Object value); @SuppressWarnings("unchecked") boolean executeUpdateDomainObjectProperty(final DomainObject domainObject,
                                                     final String fieldName,
                                                     final Object value); ClientSession getSession(); AbstractCanvasHandler getCanvasHandler(); Diagram<?, ?> getDiagram(); RenderMode getSessionRenderMode(); }
FormsCanvasSessionHandler { @SuppressWarnings("unchecked") public boolean executeUpdateDomainObjectProperty(final DomainObject domainObject, final String fieldName, final Object value) { return execute(commandFactory.updateDomainObjectPropertyValue(domainObject, fieldName, value), domainObjectCanvasListener); } @Inject  FormsCanvasSessionHandler(final DefinitionManager definitionManager,
                                     final CanvasCommandFactory<AbstractCanvasHandler> commandFactory,
                                     final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager); FormsCanvasSessionHandler setRenderer(FormRenderer renderer); FormsCanvasSessionHandler bind(final ClientSession session); FormsCanvasSessionHandler unbind(); @PreDestroy void destroy(); void show(); @SuppressWarnings("unchecked") void show(final Command callback); @SuppressWarnings("unchecked") boolean executeUpdateProperty(final Element<? extends Definition<?>> element,
                                         final String fieldName,
                                         final Object value); @SuppressWarnings("unchecked") boolean executeUpdateDomainObjectProperty(final DomainObject domainObject,
                                                     final String fieldName,
                                                     final Object value); ClientSession getSession(); AbstractCanvasHandler getCanvasHandler(); Diagram<?, ?> getDiagram(); RenderMode getSessionRenderMode();  }