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); }