aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2014-11-10 20:36:37 +0000
committerDominik Stadler <centic@apache.org>2014-11-10 20:36:37 +0000
commitec3a74cb05df1dcd0189480292d42ea7dca2223c (patch)
tree00992bf457ac3e634e458fdf68cb2f9dbcecd9e3 /src/testcases
parent6b34a21a35936d3aab184c6f64d4c0fd2fc9169c (diff)
downloadpoi-ec3a74cb05df1dcd0189480292d42ea7dca2223c.tar.gz
poi-ec3a74cb05df1dcd0189480292d42ea7dca2223c.zip
Add initial simple test of class EscherDump
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1637977 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases')
-rw-r--r--src/testcases/org/apache/poi/ddf/TestEscherDump.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/testcases/org/apache/poi/ddf/TestEscherDump.java b/src/testcases/org/apache/poi/ddf/TestEscherDump.java
new file mode 100644
index 0000000000..349ffae471
--- /dev/null
+++ b/src/testcases/org/apache/poi/ddf/TestEscherDump.java
@@ -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);
+ }
+}