@Test public void testNewGraphCommand() { final Command<GraphCommandExecutionContext, RuleViolation> command = new UpdateDomainObjectPropertyCommand(domainObject, PROPERTY_ID, VALUE).newGraphCommand(canvasHandler); assertThat(command).isInstanceOf(UpdateDomainObjectPropertyValueCommand.class); }
@Override @SuppressWarnings("unchecked") protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler context) { return new UpdateDomainObjectPropertyValueCommand(domainObject, propertyId, value); }
UpdateDomainObjectPropertyCommand extends AbstractCanvasGraphCommand { @Override @SuppressWarnings("unchecked") protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler context) { return new UpdateDomainObjectPropertyValueCommand(domainObject, propertyId, value); } }
UpdateDomainObjectPropertyCommand extends AbstractCanvasGraphCommand { @Override @SuppressWarnings("unchecked") protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler context) { return new UpdateDomainObjectPropertyValueCommand(domainObject, propertyId, value); } UpdateDomainObjectPropertyCommand(final DomainObject domainObject,
                                             final String propertyId,
                                             final Object value); }
UpdateDomainObjectPropertyCommand extends AbstractCanvasGraphCommand { @Override @SuppressWarnings("unchecked") protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler context) { return new UpdateDomainObjectPropertyValueCommand(domainObject, propertyId, value); } UpdateDomainObjectPropertyCommand(final DomainObject domainObject,
                                             final String propertyId,
                                             final Object value); @Override String toString(); }
UpdateDomainObjectPropertyCommand extends AbstractCanvasGraphCommand { @Override @SuppressWarnings("unchecked") protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler context) { return new UpdateDomainObjectPropertyValueCommand(domainObject, propertyId, value); } UpdateDomainObjectPropertyCommand(final DomainObject domainObject,
                                             final String propertyId,
                                             final Object value); @Override String toString();  }