/** * Tests that methods which access the state of a blip without changing it * are correct after blip deletion. */ public void testBlipCanBeAccessedAfterDeletion() { ConversationBlip blip = target.getRootThread().appendBlip(); blip.delete(); assertBlipInvalid(blip); assertBlipAccessible(blip); assertEquals(target.getRootThread(), blip.getThread()); assertEquals(Collections.emptyList(), getBlipList(target.getRootThread())); assertEquals(Collections.emptyList(), getAllReplyList(blip)); }
/** * Tests that methods which access the state of a blip without changing it * are correct after blip deletion. */ public void testBlipCanBeAccessedAfterDeletion() { ConversationBlip blip = target.getRootThread().appendBlip(); blip.delete(); assertBlipInvalid(blip); assertBlipAccessible(blip); assertEquals(target.getRootThread(), blip.getThread()); assertEquals(Collections.emptyList(), getBlipList(target.getRootThread())); assertEquals(Collections.emptyList(), getAllReplyList(blip)); }
/** * Tests that methods which access the state of a blip (this time with a * child thread) without changing it are correct after blip deletion. */ public void testBlipWithThreadCanBeAccessedAfterDeletion() { ConversationBlip blip = target.getRootThread().appendBlip(); ConversationThread thread = blip.addReplyThread(); blip.delete(); assertBlipInvalid(blip); assertBlipAccessible(blip); assertEquals(target.getRootThread(), blip.getThread()); assertEquals(Collections.emptyList(), getBlipList(target.getRootThread())); assertEquals(blip, thread.getParentBlip()); assertEquals(Collections.emptyList(), getAllReplyList(blip)); }
/** * Tests that methods which access the state of a blip (this time with a * child thread) without changing it are correct after blip deletion. */ public void testBlipWithThreadCanBeAccessedAfterDeletion() { ConversationBlip blip = target.getRootThread().appendBlip(); ConversationThread thread = blip.addReplyThread(); blip.delete(); assertBlipInvalid(blip); assertBlipAccessible(blip); assertEquals(target.getRootThread(), blip.getThread()); assertEquals(Collections.emptyList(), getBlipList(target.getRootThread())); assertEquals(blip, thread.getParentBlip()); assertEquals(Collections.emptyList(), getAllReplyList(blip)); }