@Test public void CheckClinicianMultipleDeletesOneUndoTest() { Clinician second = new Clinician("First2", null, "Last2", "Address", Region.UNSPECIFIED.name(), null, 2, "pass"); manager.addClinician(second); DeleteClinicianAction action = new DeleteClinicianAction(baseClinician, manager); DeleteClinicianAction secondAction = new DeleteClinicianAction(second, manager); invoker.execute(action); invoker.execute(secondAction); invoker.undo(); assertEquals(second, manager.getClinicians().get(1)); assertEquals(2, manager.getClinicians().size()); }
@Override protected void execute() { super.execute(); manager.removeClinician(clinician); }
DeleteClinicianAction extends ClinicianAction { @Override protected void execute() { super.execute(); manager.removeClinician(clinician); } }
DeleteClinicianAction extends ClinicianAction { @Override protected void execute() { super.execute(); manager.removeClinician(clinician); } DeleteClinicianAction(Clinician clinician, ClinicianManager manager); }
DeleteClinicianAction extends ClinicianAction { @Override protected void execute() { super.execute(); manager.removeClinician(clinician); } DeleteClinicianAction(Clinician clinician, ClinicianManager manager); @Override String getExecuteText(); @Override String getUnexecuteText(); }
DeleteClinicianAction extends ClinicianAction { @Override protected void execute() { super.execute(); manager.removeClinician(clinician); } DeleteClinicianAction(Clinician clinician, ClinicianManager manager); @Override String getExecuteText(); @Override String getUnexecuteText();  }