", buffer.toString());
}
@Test
public void testCode() throws IOException {
root.code().text("0xCAFEBABE");
root.close();
assertEquals("
0xCAFEBABE
", buffer.toString());
}
@Test
public void testA1() throws IOException {
root.a("http://www.jacoco.org/");
root.close();
assertEquals("
",
buffer.toString());
}
@Test
public void testA2() throws IOException {
root.a("http://www.jacoco.org/", "extern");
root.close();
assertEquals(
"
",
buffer.toString());
}
@Test
public void testALinkable1() throws IOException {
root.a(new LinkableStub(null, "here", null), null);
root.close();
assertEquals("
here", buffer.toString());
}
@Test
public void testALinkable2() throws IOException {
root.a(new LinkableStub(null, "here", "blue"), null);
root.close();
assertEquals("
here",
buffer.toString());
}
@Test
public void testALinkable3() throws IOException {
root.a(new LinkableStub("index.html", "here", null), null);
root.close();
assertEquals("
here",
buffer.toString());
}
@Test
public void testALinkable4() throws IOException {
root.a(new LinkableStub("index.html", "here", "red"), null);
root.close();
assertEquals(
"
here",
buffer.toString());
}
@Test
public void testTable() throws IOException {
root.table("tablestyle");
root.close();
assertEquals(
"
",
buffer.toString());
}
@Test
public void testThead() throws IOException {
root.thead();
root.close();
assertEquals("", buffer.toString());
}
@Test
public void testTfoot() throws IOException {
root.tfoot();
root.close();
assertEquals("", buffer.toString());
}
@Test
public void testTbody() throws IOException {
root.tbody();
root.close();
assertEquals("", buffer.toString());
}
@Test
public void testTr() throws IOException {
root.tr();
root.close();
assertEquals("
", buffer.toString());
}
@Test
public void testTd1() throws IOException {
root.td();
root.close();
assertEquals(" | ", buffer.toString());
}
@Test
public void testTd2() throws IOException {
root.td("mystyle");
root.close();
assertEquals("", buffer.toString());
}
@Test
public void testImg() throws IOException {
root.img("sample.gif", 16, 32, "Hello");
root.close();
assertEquals(
" ",
buffer.toString());
}
@Test
public void testScript() throws IOException {
root.script("text/javascript", "file.js");
root.close();
assertEquals(
"",
buffer.toString());
}
}
|