[Jiemamy-notify] commit [2056] emptyElementを含むテストに変更。

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2008年 10月 27日 (月) 22:17:33 JST


Revision: 2056
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=jiemamy&view=rev&rev=2056
Author:   daisuke_m
Date:     2008-10-27 22:17:33 +0900 (Mon, 27 Oct 2008)

Log Message:
-----------
emptyElementを含むテストに変更。

Modified Paths:
--------------
    artemis/trunk/org.jiemamy.serializer/src/test/java/com/megginson/sax/DataWriterTest.java


-------------- next part --------------
Modified: artemis/trunk/org.jiemamy.serializer/src/test/java/com/megginson/sax/DataWriterTest.java
===================================================================
--- artemis/trunk/org.jiemamy.serializer/src/test/java/com/megginson/sax/DataWriterTest.java	2008-10-27 13:10:01 UTC (rev 2055)
+++ artemis/trunk/org.jiemamy.serializer/src/test/java/com/megginson/sax/DataWriterTest.java	2008-10-27 13:17:33 UTC (rev 2056)
@@ -42,23 +42,29 @@
 		w.dataElement("bar", "1");
 		w.dataElement("bar", "2");
 		w.startElement("baz");
-		w.dataElement("qux", "quux");
+		w.dataElement("qux", "3");
+		w.startElement("corge");
+		w.characters("4");
+		w.endElement("corge");
+		w.dataElement("grault", "");
+		w.emptyElement("garply");
 		w.endElement("baz");
-		w.dataElement("bar", "3");
+		w.dataElement("bar", "5");
 		w.endElement("foo");
 		w.endDocument();
 		
-		System.out.println(sw.toString());
-		
 		StrBuilder sb = new StrBuilder();
 		sb.appendln("<?xml version=\"1.0\" standalone=\"yes\"?>");
 		sb.appendln("<foo>");
 		sb.appendln("  <bar>1</bar>");
 		sb.appendln("  <bar>2</bar>");
 		sb.appendln("  <baz>");
-		sb.appendln("    <qux>quux</qux>");
+		sb.appendln("    <qux>3</qux>");
+		sb.appendln("    <corge>4</corge>");
+		sb.appendln("    <grault></grault>");
+		sb.appendln("    <garply/>");
 		sb.appendln("  </baz>");
-		sb.appendln("  <bar>3</bar>");
+		sb.appendln("  <bar>5</bar>");
 		sb.appendln("</foo>");
 		sb.appendln("");
 		


Jiemamy-notify メーリングリストの案内
Back to archive index