XmlBuffer now adds a newline at the end of a tag

git-svn-id: https://svn.apache.org/repos/asf/jakarta/jmeter/trunk@671980 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: bb40802a86
This commit is contained in:
Sebastian Bazley 2008-06-26 18:37:47 +00:00
parent 27764969ff
commit 1c9a0ba74a
1 changed files with 3 additions and 3 deletions

View File

@ -30,19 +30,19 @@ public class TestXMLBuffer extends JMeterTestCase {
public void test1() throws Exception{
XMLBuffer xb = new XMLBuffer();
xb.openTag("start");
assertEquals("<start></start>",xb.toString());
assertEquals("<start></start>\n",xb.toString());
}
public void test2() throws Exception{
XMLBuffer xb = new XMLBuffer();
xb.tag("start","now");
assertEquals("<start>now</start>",xb.toString());
assertEquals("<start>now</start>\n",xb.toString());
}
public void test3() throws Exception{
XMLBuffer xb = new XMLBuffer();
xb.openTag("abc");
xb.closeTag("abc");
assertEquals("<abc></abc>",xb.toString());
assertEquals("<abc></abc>\n",xb.toString());
}
public void test4() throws Exception{
XMLBuffer xb = new XMLBuffer();