@Test public void CheckClinicianAddedUndoTest() { CreateClinicianAction action = new CreateClinicianAction(baseClinician, manager); invoker.execute(action); invoker.undo(); assertEquals(1, manager.getClinicians().size()); }
@Override protected void execute() { super.execute(); manager.addClinician(clinician); }
CreateClinicianAction extends ClinicianAction { @Override protected void execute() { super.execute(); manager.addClinician(clinician); } }
CreateClinicianAction extends ClinicianAction { @Override protected void execute() { super.execute(); manager.addClinician(clinician); } CreateClinicianAction(Clinician clinician, ClinicianManager manager); }
CreateClinicianAction extends ClinicianAction { @Override protected void execute() { super.execute(); manager.addClinician(clinician); } CreateClinicianAction(Clinician clinician, ClinicianManager manager); @Override String getExecuteText(); @Override String getUnexecuteText(); }
CreateClinicianAction extends ClinicianAction { @Override protected void execute() { super.execute(); manager.addClinician(clinician); } CreateClinicianAction(Clinician clinician, ClinicianManager manager); @Override String getExecuteText(); @Override String getUnexecuteText();  }