@Test public void checkAdministratorAddedUndoTest() { CreateAdministratorAction action = new CreateAdministratorAction(baseAdministrator, manager); invoker.execute(action); invoker.undo(); assertEquals(1, manager.getAdministrators().size()); }
@Override protected void execute() { super.execute(); manager.addAdministrator(administrator); }
CreateAdministratorAction extends AdministratorAction { @Override protected void execute() { super.execute(); manager.addAdministrator(administrator); } }
CreateAdministratorAction extends AdministratorAction { @Override protected void execute() { super.execute(); manager.addAdministrator(administrator); } CreateAdministratorAction(Administrator administrator, AdministratorManager manager); }
CreateAdministratorAction extends AdministratorAction { @Override protected void execute() { super.execute(); manager.addAdministrator(administrator); } CreateAdministratorAction(Administrator administrator, AdministratorManager manager); @Override String getExecuteText(); @Override String getUnexecuteText(); }
CreateAdministratorAction extends AdministratorAction { @Override protected void execute() { super.execute(); manager.addAdministrator(administrator); } CreateAdministratorAction(Administrator administrator, AdministratorManager manager); @Override String getExecuteText(); @Override String getUnexecuteText();  }