MCPcopy Create free account
hub / github.com/GateNLP/gate-core / testDocRender

Method testDocRender

src/test/java/gate/corpora/TestDocument.java:172–181  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

170
171
172 public void testDocRender() throws Exception
173 {
174 Document doc = Factory.newDocument("Hi Mom");
175 doc.getAnnotations().add(new Long(0), new Long(2),
176 "Foo", new SimpleFeatureMapImpl());
177 String content = doc.toXml(doc.getAnnotations(), false);
178
179 // Will fail, content is "<Foo>Hi Mom</Foo>"
180 assertEquals("<Foo>Hi</Foo> Mom", content);
181 }
182
183
184 /** The reason this is method begins with verify and not with test is that it

Callers

nothing calls this directly

Calls 4

newDocumentMethod · 0.95
toXmlMethod · 0.95
addMethod · 0.65
getAnnotationsMethod · 0.65

Tested by

no test coverage detected