@Test public void testAnnotateArticle() throws Exception { System.out.println(annotatedCopilotDocument.analyses()); assertNotNull(annotatedCopilotDocument); assertNotNull(annotatedCopilotDocument.analyses()); assertEquals(3, annotatedCopilotDocument.analyses().size()); }
@Test public void testTextCleaned() { String text = annotatedCopilotDocument.analysisOf("model.body").text(); assertNotNull(text); assertFalse( "Text has not been cleaned from markup", text.contains( "[View Slideshow](http://www" + ".architecturaldigest" + ".com/gallery/adam-levine-hollywood-hills-home-slideshow)")); assertFalse( "Text has not been cleaned from copilot specific stuff", text.startsWith("View Slideshow")); }