You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ce...@apache.org on 2014/11/10 21:36:38 UTC
svn commit: r1637977 -
/poi/trunk/src/testcases/org/apache/poi/ddf/TestEscherDump.java
Author: centic
Date: Mon Nov 10 20:36:37 2014
New Revision: 1637977
URL: http://svn.apache.org/r1637977
Log:
Add initial simple test of class EscherDump
Added:
poi/trunk/src/testcases/org/apache/poi/ddf/TestEscherDump.java
Added: poi/trunk/src/testcases/org/apache/poi/ddf/TestEscherDump.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/testcases/org/apache/poi/ddf/TestEscherDump.java?rev=1637977&view=auto
==============================================================================
--- poi/trunk/src/testcases/org/apache/poi/ddf/TestEscherDump.java (added)
+++ poi/trunk/src/testcases/org/apache/poi/ddf/TestEscherDump.java Mon Nov 10 20:36:37 2014
@@ -0,0 +1,22 @@
+package org.apache.poi.ddf;
+
+import java.io.ByteArrayInputStream;
+
+import org.junit.Test;
+
+public class TestEscherDump {
+ @Test
+ public void testSimple() throws Exception {
+ // simple test to at least cover some parts of the class
+ EscherDump.main(new String[] {});
+
+ new EscherDump().dump(0, new byte[] {}, System.out);
+ new EscherDump().dump(new byte[] {}, 0, 0, System.out);
+ new EscherDump().dumpOld(0, new ByteArrayInputStream(new byte[] {}), System.out);
+ }
+
+ @Test
+ public void testWithData() throws Exception {
+ new EscherDump().dumpOld(8, new ByteArrayInputStream(new byte[] { 00, 00, 00, 00, 00, 00, 00, 00 }), System.out);
+ }
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org