@Test public void cancelTest() { Action action = new ResolveTransplantRequestAction( testRequest, TransplantRequestStatus.CANCELLED, "Cancelled.", LocalDateTime.now(), manager); invoker.execute(action); assertEquals(TransplantRequestStatus.CANCELLED, testRequest.getStatus()); }
@Override protected void execute() { super.execute(); request.setStatus(status); request.setResolvedDateTime(resolvedTime); request.setResolvedReason(reason); manager.applyChangesTo(request.getClient()); }
ResolveTransplantRequestAction extends ClientAction { @Override protected void execute() { super.execute(); request.setStatus(status); request.setResolvedDateTime(resolvedTime); request.setResolvedReason(reason); manager.applyChangesTo(request.getClient()); } }
ResolveTransplantRequestAction extends ClientAction { @Override protected void execute() { super.execute(); request.setStatus(status); request.setResolvedDateTime(resolvedTime); request.setResolvedReason(reason); manager.applyChangesTo(request.getClient()); } ResolveTransplantRequestAction(TransplantRequest request,
            TransplantRequestStatus status,
            String reason,
            LocalDateTime resolvedTime,
            ClientManager manager); }
ResolveTransplantRequestAction extends ClientAction { @Override protected void execute() { super.execute(); request.setStatus(status); request.setResolvedDateTime(resolvedTime); request.setResolvedReason(reason); manager.applyChangesTo(request.getClient()); } ResolveTransplantRequestAction(TransplantRequest request,
            TransplantRequestStatus status,
            String reason,
            LocalDateTime resolvedTime,
            ClientManager manager); @Override String getExecuteText(); @Override String getUnexecuteText(); }
ResolveTransplantRequestAction extends ClientAction { @Override protected void execute() { super.execute(); request.setStatus(status); request.setResolvedDateTime(resolvedTime); request.setResolvedReason(reason); manager.applyChangesTo(request.getClient()); } ResolveTransplantRequestAction(TransplantRequest request,
            TransplantRequestStatus status,
            String reason,
            LocalDateTime resolvedTime,
            ClientManager manager); @Override String getExecuteText(); @Override String getUnexecuteText();  }