diff options
author | Josh Micich <josh@apache.org> | 2009-12-23 04:35:37 +0000 |
---|---|---|
committer | Josh Micich <josh@apache.org> | 2009-12-23 04:35:37 +0000 |
commit | 8221d395851c8f4b208df0a72dad9a4813f16e88 (patch) | |
tree | b7a93211ffe120d9ff0fcec893b67e409308f9ab /src/testcases/org/apache/poi/hssf/usermodel/TestSanityChecker.java | |
parent | 74409960b57424a3970d743a9adcdce82da1891a (diff) | |
download | poi-8221d395851c8f4b208df0a72dad9a4813f16e88.tar.gz poi-8221d395851c8f4b208df0a72dad9a4813f16e88.zip |
Simplified InterfaceHdrRecord and InterfaceEndRecord (some rework after bug 47251 / r892862).
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@893402 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/hssf/usermodel/TestSanityChecker.java')
-rw-r--r-- | src/testcases/org/apache/poi/hssf/usermodel/TestSanityChecker.java | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestSanityChecker.java b/src/testcases/org/apache/poi/hssf/usermodel/TestSanityChecker.java index 28a24a1a75..f5839fa83b 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/TestSanityChecker.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestSanityChecker.java @@ -39,15 +39,15 @@ import org.apache.poi.hssf.usermodel.SanityChecker.CheckRecord; * @author Glen Stampoultzis (glens at apache.org) */ public final class TestSanityChecker extends TestCase { - + private static final Record INTERFACEHDR = new InterfaceHdrRecord(InterfaceHdrRecord.CODEPAGE); private static BoundSheetRecord createBoundSheetRec() { return new BoundSheetRecord("Sheet1"); } public void testCheckRecordOrder() { final SanityChecker c = new SanityChecker(); - List records = new ArrayList(); + List<Record> records = new ArrayList<Record>(); records.add(new BOFRecord()); - records.add(new InterfaceHdrRecord()); + records.add(INTERFACEHDR); records.add(createBoundSheetRec()); records.add(EOFRecord.instance); CheckRecord[] check = { @@ -71,15 +71,15 @@ public final class TestSanityChecker extends TestCase { confirmBadRecordOrder(check, new Record[] { new BOFRecord(), createBoundSheetRec(), - new InterfaceHdrRecord(), + INTERFACEHDR, EOFRecord.instance, }); confirmBadRecordOrder(check, new Record[] { new BOFRecord(), - new InterfaceHdrRecord(), + INTERFACEHDR, createBoundSheetRec(), - new InterfaceHdrRecord(), + INTERFACEHDR, EOFRecord.instance, }); @@ -92,19 +92,19 @@ public final class TestSanityChecker extends TestCase { }); confirmBadRecordOrder(check, new Record[] { - new InterfaceHdrRecord(), + INTERFACEHDR, createBoundSheetRec(), EOFRecord.instance, }); confirmBadRecordOrder(check, new Record[] { new BOFRecord(), - new InterfaceHdrRecord(), + INTERFACEHDR, EOFRecord.instance, }); confirmBadRecordOrder(check, new Record[] { - new InterfaceHdrRecord(), + INTERFACEHDR, createBoundSheetRec(), new BOFRecord(), EOFRecord.instance, @@ -113,7 +113,7 @@ public final class TestSanityChecker extends TestCase { confirmBadRecordOrder(check, new Record[] { new BOFRecord(), createBoundSheetRec(), - new InterfaceHdrRecord(), + INTERFACEHDR, EOFRecord.instance, }); } |