@Test public void ModifyObjectFromPrimitiveValidTest() throws Exception { SettableItem testItem = new SettableItem(); testItem.setInteger(1); ModifyObjectByFieldAction action = new ModifyObjectByFieldAction(testItem, "anInt", testItem.getInteger(), 2); invoker.execute(action); assertEquals(2, testItem.getAnInt()); }
@Override public void execute() { runChange(newValue); }
ModifyObjectByFieldAction extends Action { @Override public void execute() { runChange(newValue); } }
ModifyObjectByFieldAction extends Action { @Override public void execute() { runChange(newValue); } ModifyObjectByFieldAction(Object toModify, String field, Object oldValue, Object newValue);  ModifyObjectByFieldAction(Object toModify, String field, Object oldValue, Object newValue, boolean isPrivate);  ModifyObjectByFieldAction(Object toModify, String field, Object newValue); }
ModifyObjectByFieldAction extends Action { @Override public void execute() { runChange(newValue); } ModifyObjectByFieldAction(Object toModify, String field, Object oldValue, Object newValue);  ModifyObjectByFieldAction(Object toModify, String field, Object oldValue, Object newValue, boolean isPrivate);  ModifyObjectByFieldAction(Object toModify, String field, Object newValue); @Override void execute(); @Override void unExecute(); @Override String getExecuteText(); @Override String getUnexecuteText(); @Override Object getModifiedObject(); }
ModifyObjectByFieldAction extends Action { @Override public void execute() { runChange(newValue); } ModifyObjectByFieldAction(Object toModify, String field, Object oldValue, Object newValue);  ModifyObjectByFieldAction(Object toModify, String field, Object oldValue, Object newValue, boolean isPrivate);  ModifyObjectByFieldAction(Object toModify, String field, Object newValue); @Override void execute(); @Override void unExecute(); @Override String getExecuteText(); @Override String getUnexecuteText(); @Override Object getModifiedObject();  }