public void testCannotGetManifestAsDataDocument() { try { target.getDataDocument("conversation"); fail("Expected an exception fetching manifest as a data doc"); } catch (IllegalArgumentException expected) { } }
public void testCannotGetManifestAsDataDocument() { try { target.getDataDocument("conversation"); fail("Expected an exception fetching manifest as a data doc"); } catch (IllegalArgumentException expected) { } }
/** * Checks that a conversation is unusable by attempting mutation. */ protected static void assertConversationUnusable(Conversation conversation) { try { conversation.setAnchor(null); fail("Expected conversation to be unusable"); } catch (IllegalStateException expected) { } try { conversation.getRootThread().appendBlip(); fail("Expected conversation items to be unusable"); } catch (IllegalStateException expected) { } }
/** * Checks that a conversation is unusable by attempting mutation. */ protected static void assertConversationUnusable(Conversation conversation) { try { conversation.setAnchor(null); fail("Expected conversation to be unusable"); } catch (IllegalStateException expected) { } try { conversation.getRootThread().appendBlip(); fail("Expected conversation items to be unusable"); } catch (IllegalStateException expected) { } }
public void testCannotGetBlipAsDataDocument() { ConversationBlip blip = target.getRootThread().appendBlip(); try { target.getDataDocument(blip.getId()); fail("Expected an exception fetching a blip document as a data doc"); } catch (IllegalArgumentException expected) { } }
public void testCannotGetBlipAsDataDocument() { ConversationBlip blip = target.getRootThread().appendBlip(); try { target.getDataDocument(blip.getId()); fail("Expected an exception fetching a blip document as a data doc"); } catch (IllegalArgumentException expected) { } }
public void testAnchorToSelfFails() { populate(target); ConversationBlip blip = getFirstBlip(target); Anchor anchor = target.createAnchor(blip); try { target.setAnchor(anchor); fail("Expected an IllegalArgumentException"); } catch (IllegalArgumentException expected) { } assertFalse(target.hasAnchor()); }
public void testAnchorToSelfFails() { populate(target); ConversationBlip blip = getFirstBlip(target); Anchor anchor = target.createAnchor(blip); try { target.setAnchor(anchor); fail("Expected an IllegalArgumentException"); } catch (IllegalArgumentException expected) { } assertFalse(target.hasAnchor()); }