cb = (CodeBlock) textOrMarkup.getContents().get(0);
assertEquals(0, cb.getContents().size());
}
public void testCodeWithLanguage() throws Exception {
XdocFile file = getDocFromFile(TEST_FILE_DIR
+ "codeWithLanguageTest.xdoc");
Document abstractSection = (Document) file.getMainSection();
TextOrMarkup textOrMarkup = abstractSection.getChapters().get(0).getContents().get(0);
assertEquals(1, textOrMarkup.getContents().size());
CodeBlock cb = (CodeBlock) textOrMarkup.getContents().get(0);
assertEquals("\n\t/* a testclass */\n"
+ "\tclass Foo {\n"