poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cen...@apache.org
Subject svn commit: r1637977 - /poi/trunk/src/testcases/org/apache/poi/ddf/TestEscherDump.java
Date Mon, 10 Nov 2014 20:36:38 GMT
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


Mime
View raw message