public void testUndoCreateSlot() { Slot slot = createSlot(); String name = slot.getName(); assertNotNull("name", name); Frame frame = getFrame(name); assertEquals("created", slot, frame); assertTrue("can undo", _frameStore.canUndo()); _frameStore.undo(); frame = getFrame(name); assertNull("undone", frame); _frameStore.redo(); frame = getFrame(name); assertEquals("recreated", frame.getName(), name); }
public void testUndocreateCls() { Cls cls = createCls(); String name = cls.getName(); assertNotNull("name", name); Frame frame = getFrame(name); assertEquals("created", cls, frame); assertTrue("can undo", _frameStore.canUndo()); _frameStore.undo(); frame = getFrame(name); assertNull("undone", frame); _frameStore.redo(); frame = getFrame(name); assertEquals("recreated", frame.getName(), name); }
public void testUndoCreateSimpleInstance() { Cls cls = createCls(); Instance instance = createSimpleInstance(cls); String name = instance.getName(); assertNotNull("name", name); Frame frame = getFrame(name); assertEquals("created", instance, frame); assertTrue("can undo", _frameStore.canUndo()); _frameStore.undo(); frame = getFrame(name); assertNull("undone", frame); _frameStore.redo(); instance = (Instance) getFrame(name); assertEquals("recreated", instance.getName(), name); }