@Test @SuppressWarnings("unchecked") public void testExecute() { final CommandResult<CanvasViolation> result = tested.execute(canvasHandler); assertNotEquals(CommandResult.Type.ERROR, result.getType()); verify(canvasHandler, times(1)).updateElementProperties(eq(candidate), any(MutationContext.class)); }
@Override public CommandResult<CanvasViolation> execute(final AbstractCanvasHandler context) { context.updateElementProperties(element, MutationContext.STATIC); return buildResult(); }
UpdateCanvasElementPropertyCommand extends AbstractCanvasCommand { @Override public CommandResult<CanvasViolation> execute(final AbstractCanvasHandler context) { context.updateElementProperties(element, MutationContext.STATIC); return buildResult(); } }
UpdateCanvasElementPropertyCommand extends AbstractCanvasCommand { @Override public CommandResult<CanvasViolation> execute(final AbstractCanvasHandler context) { context.updateElementProperties(element, MutationContext.STATIC); return buildResult(); } UpdateCanvasElementPropertyCommand(final Element element); }
UpdateCanvasElementPropertyCommand extends AbstractCanvasCommand { @Override public CommandResult<CanvasViolation> execute(final AbstractCanvasHandler context) { context.updateElementProperties(element, MutationContext.STATIC); return buildResult(); } UpdateCanvasElementPropertyCommand(final Element element); @Override CommandResult<CanvasViolation> execute(final AbstractCanvasHandler context); @Override CommandResult<CanvasViolation> undo(final AbstractCanvasHandler context); @Override String toString(); }
UpdateCanvasElementPropertyCommand extends AbstractCanvasCommand { @Override public CommandResult<CanvasViolation> execute(final AbstractCanvasHandler context) { context.updateElementProperties(element, MutationContext.STATIC); return buildResult(); } UpdateCanvasElementPropertyCommand(final Element element); @Override CommandResult<CanvasViolation> execute(final AbstractCanvasHandler context); @Override CommandResult<CanvasViolation> undo(final AbstractCanvasHandler context); @Override String toString();  }