r139 - trunk/msm-fromtoXML/src/test/java/org/nuiton/mapstoragemanager/plugins/exporter
Author: dlanglais Date: 2010-02-27 17:28:06 +0100 (Sat, 27 Feb 2010) New Revision: 139 Modified: trunk/msm-fromtoXML/src/test/java/org/nuiton/mapstoragemanager/plugins/exporter/ExporterTest.java Log: Rectification : - classe de test : OK - classe ToXML : Nok. Modified: trunk/msm-fromtoXML/src/test/java/org/nuiton/mapstoragemanager/plugins/exporter/ExporterTest.java =================================================================== --- trunk/msm-fromtoXML/src/test/java/org/nuiton/mapstoragemanager/plugins/exporter/ExporterTest.java 2010-02-27 16:24:45 UTC (rev 138) +++ trunk/msm-fromtoXML/src/test/java/org/nuiton/mapstoragemanager/plugins/exporter/ExporterTest.java 2010-02-27 16:28:06 UTC (rev 139) @@ -7,8 +7,6 @@ import java.io.IOException; import java.lang.reflect.Field; -import java.util.logging.Level; -import java.util.logging.Logger; import junit.framework.TestCase; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -113,77 +111,77 @@ value2.setText("content2"); cell2.addContent(value2); -// nbt.put("table1", "column2", "3", "content3"); -// Element cell3 = new Element("cell"); -// Attribute cell3key = new Attribute("key", "3"); -// cell3.setAttribute(cell3key); -// column2.addContent(cell3); -// Element value3 = new Element("value"); -// value3.setText("content3"); -// cell3.addContent(value3); + nbt.put("table1", "column2", "3", "content3"); + Element cell3 = new Element("cell"); + Attribute cell3key = new Attribute("key", "3"); + cell3.setAttribute(cell3key); + column2.addContent(cell3); + Element value3 = new Element("value"); + value3.setText("content3"); + cell3.addContent(value3); -// nbt.put("table1", "column2", "4", "content4"); -// Element cell4 = new Element("cell"); -// Attribute cell4key = new Attribute("key", "4"); -// cell4.setAttribute(cell4key); -// column2.addContent(cell4); -// Element value4 = new Element("value"); -// value4.setText("content4"); -// cell4.addContent(value4); + nbt.put("table1", "column2", "4", "content4"); + Element cell4 = new Element("cell"); + Attribute cell4key = new Attribute("key", "4"); + cell4.setAttribute(cell4key); + column2.addContent(cell4); + Element value4 = new Element("value"); + value4.setText("content4"); + cell4.addContent(value4); -// nbt.put("table2", "column3", "5", "content5"); -// Element cell5 = new Element("cell"); -// Attribute cell5key = new Attribute("key", "5"); -// cell5.setAttribute(cell5key); -// column3.addContent(cell5); -// Element value5 = new Element("value"); -// value5.setText("content5"); -// cell5.addContent(value5); + nbt.put("table2", "column3", "5", "content5"); + Element cell5 = new Element("cell"); + Attribute cell5key = new Attribute("key", "5"); + cell5.setAttribute(cell5key); + column3.addContent(cell5); + Element value5 = new Element("value"); + value5.setText("content5"); + cell5.addContent(value5); -// nbt.put("table2", "column3", "6", "content6"); -// Element cell6 = new Element("cell"); -// Attribute cell6key = new Attribute("key", "6"); -// cell6.setAttribute(cell6key); -// column3.addContent(cell6); -// Element value6 = new Element("value"); -// value6.setText("content6"); -// cell6.addContent(value6); + nbt.put("table2", "column3", "6", "content6"); + Element cell6 = new Element("cell"); + Attribute cell6key = new Attribute("key", "6"); + cell6.setAttribute(cell6key); + column3.addContent(cell6); + Element value6 = new Element("value"); + value6.setText("content6"); + cell6.addContent(value6); -// nbt.put("table2", "column4", "7", "content7"); -// Element cell7 = new Element("cell"); -// Attribute cell7key = new Attribute("key", "7"); -// cell7.setAttribute(cell7key); -// column4.addContent(cell7); -// Element value7 = new Element("value"); -// value7.setText("content7"); -// cell7.addContent(value7); + nbt.put("table2", "column4", "7", "content7"); + Element cell7 = new Element("cell"); + Attribute cell7key = new Attribute("key", "7"); + cell7.setAttribute(cell7key); + column4.addContent(cell7); + Element value7 = new Element("value"); + value7.setText("content7"); + cell7.addContent(value7); -// nbt.put("table2", "column4", "8", "content8"); -// Element cell8 = new Element("cell"); -// Attribute cell8key = new Attribute("key", "8"); -// cell8.setAttribute(cell8key); -// column4.addContent(cell8); -// Element value8 = new Element("value"); -// value8.setText("content8"); -// cell8.addContent(value8); + nbt.put("table2", "column4", "8", "content8"); + Element cell8 = new Element("cell"); + Attribute cell8key = new Attribute("key", "8"); + cell8.setAttribute(cell8key); + column4.addContent(cell8); + Element value8 = new Element("value"); + value8.setText("content8"); + cell8.addContent(value8); -// nbt.put("table2", "column5", "9", "content9"); -// Element cell9 = new Element("cell"); -// Attribute cell9key = new Attribute("key", "9"); -// cell9.setAttribute(cell9key); -// column5.addContent(cell9); -// Element value9 = new Element("value"); -// value9.setText("content9"); -// cell9.addContent(value9); + nbt.put("table2", "column5", "9", "content9"); + Element cell9 = new Element("cell"); + Attribute cell9key = new Attribute("key", "9"); + cell9.setAttribute(cell9key); + column5.addContent(cell9); + Element value9 = new Element("value"); + value9.setText("content9"); + cell9.addContent(value9); -// nbt.put("table2", "column5", "10", "content10"); -// Element cell10 = new Element("cell"); -// Attribute cell10key = new Attribute("key", "10"); -// cell10.setAttribute(cell10key); -// column5.addContent(cell10); -// Element value10 = new Element("value"); -// value10.setText("content10"); -// cell10.addContent(value10); + nbt.put("table2", "column5", "10", "content10"); + Element cell10 = new Element("cell"); + Attribute cell10key = new Attribute("key", "10"); + cell10.setAttribute(cell10key); + column5.addContent(cell10); + Element value10 = new Element("value"); + value10.setText("content10"); + cell10.addContent(value10); Exporter exporter = new ToXML(); exporter.exportTo(nbt, null); @@ -209,7 +207,7 @@ try { XMLOutputter output = new XMLOutputter(Format.getPrettyFormat()); output.output(expected, System.out); - output.output(actual, System.out); +// output.output(actual, System.out); } catch (IOException ex) { LOG.error(ex, ex); }
participants (1)
-
dlanglais@users.nuiton.org