Return-Path: X-Original-To: apmail-poi-commits-archive@minotaur.apache.org Delivered-To: apmail-poi-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1809010108 for ; Mon, 10 Nov 2014 20:37:30 +0000 (UTC) Received: (qmail 50251 invoked by uid 500); 10 Nov 2014 20:37:30 -0000 Delivered-To: apmail-poi-commits-archive@poi.apache.org Received: (qmail 50214 invoked by uid 500); 10 Nov 2014 20:37:29 -0000 Mailing-List: contact commits-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@poi.apache.org Delivered-To: mailing list commits@poi.apache.org Received: (qmail 50204 invoked by uid 99); 10 Nov 2014 20:37:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Nov 2014 20:37:29 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Nov 2014 20:37:28 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id D634E238888F; Mon, 10 Nov 2014 20:36:38 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1637977 - /poi/trunk/src/testcases/org/apache/poi/ddf/TestEscherDump.java Date: Mon, 10 Nov 2014 20:36:38 -0000 To: commits@poi.apache.org From: centic@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20141110203638.D634E238888F@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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