From: Josh Micich Date: Mon, 24 May 2010 23:26:57 +0000 (+0000) Subject: Added loose tests to junit hierarchy X-Git-Tag: REL_3_7_BETA1~63 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8c952b66ad4172209eeb4f411bb69e503ba6ea91;p=poi.git Added loose tests to junit hierarchy git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@947860 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/ooxml/testcases/org/apache/poi/xssf/AllXSSFTests.java b/src/ooxml/testcases/org/apache/poi/xssf/AllXSSFTests.java index 25227a42fc..d227a49934 100644 --- a/src/ooxml/testcases/org/apache/poi/xssf/AllXSSFTests.java +++ b/src/ooxml/testcases/org/apache/poi/xssf/AllXSSFTests.java @@ -20,6 +20,7 @@ package org.apache.poi.xssf; import junit.framework.Test; import junit.framework.TestSuite; +import org.apache.poi.ss.format.TestCellFormatPart; import org.apache.poi.ss.util.TestCellReference; import org.apache.poi.xssf.eventusermodel.TestXSSFReader; import org.apache.poi.xssf.extractor.TestXSSFExcelExtractor; @@ -50,6 +51,7 @@ public final class AllXSSFTests { result.addTestSuite(TestCellReference.class); result.addTestSuite(TestCTColComparator.class); result.addTestSuite(TestNumericRanges.class); + result.addTestSuite(TestCellFormatPart.class); return result; } } diff --git a/src/testcases/org/apache/poi/ddf/AllPOIDDFTests.java b/src/testcases/org/apache/poi/ddf/AllPOIDDFTests.java index ca82ac83cf..33d34e50f7 100644 --- a/src/testcases/org/apache/poi/ddf/AllPOIDDFTests.java +++ b/src/testcases/org/apache/poi/ddf/AllPOIDDFTests.java @@ -21,28 +21,28 @@ import junit.framework.Test; import junit.framework.TestSuite; /** * Tests for org.apache.poi.ddf
- * + * * @author Josh Micich */ public final class AllPOIDDFTests { public static Test suite() { TestSuite result = new TestSuite("Tests for org.apache.poi.ddf"); + result.addTestSuite(TestEscherBSERecord.class); + result.addTestSuite(TestEscherBlipRecord.class); result.addTestSuite(TestEscherBlipWMFRecord.class); result.addTestSuite(TestEscherBoolProperty.class); - result.addTestSuite(TestEscherBSERecord.class); result.addTestSuite(TestEscherChildAnchorRecord.class); result.addTestSuite(TestEscherClientAnchorRecord.class); result.addTestSuite(TestEscherClientDataRecord.class); result.addTestSuite(TestEscherContainerRecord.class); - result.addTestSuite(TestEscherDggRecord.class); result.addTestSuite(TestEscherDgRecord.class); + result.addTestSuite(TestEscherDggRecord.class); result.addTestSuite(TestEscherOptRecord.class); result.addTestSuite(TestEscherPropertyFactory.class); + result.addTestSuite(TestEscherSpRecord.class); result.addTestSuite(TestEscherSpgrRecord.class); result.addTestSuite(TestEscherSplitMenuColorsRecord.class); - result.addTestSuite(TestEscherSpRecord.class); result.addTestSuite(TestUnknownEscherRecord.class); - result.addTestSuite(TestEscherBlipRecord.class); return result; } } diff --git a/src/testcases/org/apache/poi/hssf/record/AllRecordTests.java b/src/testcases/org/apache/poi/hssf/record/AllRecordTests.java index d49475f5cb..a50f157dc6 100644 --- a/src/testcases/org/apache/poi/hssf/record/AllRecordTests.java +++ b/src/testcases/org/apache/poi/hssf/record/AllRecordTests.java @@ -45,6 +45,7 @@ public final class AllRecordTests { result.addTest(AllPivotRecordTests.suite()); result.addTest(AllRecordAggregateTests.suite()); + result.addTestSuite(TestArrayRecord.class); result.addTestSuite(TestBOFRecord.class); result.addTestSuite(TestBoolErrRecord.class); result.addTestSuite(TestBoundSheetRecord.class); @@ -54,17 +55,21 @@ public final class AllRecordTests { result.addTestSuite(TestColumnInfoRecord.class); result.addTestSuite(TestCommonObjectDataSubRecord.class); result.addTestSuite(TestConstantValueParser.class); + result.addTestSuite(TestDVALRecord.class); result.addTestSuite(TestDrawingGroupRecord.class); + result.addTestSuite(TestDrawingRecord.class); result.addTestSuite(TestEmbeddedObjectRefSubRecord.class); result.addTestSuite(TestEndSubRecord.class); result.addTestSuite(TestEscherAggregate.class); result.addTestSuite(TestExtendedFormatRecord.class); result.addTestSuite(TestExternalNameRecord.class); + result.addTestSuite(TestFeatRecord.class); result.addTestSuite(TestFontRecord.class); result.addTestSuite(TestFormulaRecord.class); result.addTestSuite(TestHyperlinkRecord.class); result.addTestSuite(TestInterfaceEndRecord.class); result.addTestSuite(TestLabelRecord.class); + result.addTestSuite(TestLbsDataSubRecord.class); result.addTestSuite(TestMergeCellsRecord.class); result.addTestSuite(TestNameRecord.class); result.addTestSuite(TestNoteRecord.class); diff --git a/src/testcases/org/apache/poi/hssf/record/formula/functions/AllIndividualFunctionEvaluationTests.java b/src/testcases/org/apache/poi/hssf/record/formula/functions/AllIndividualFunctionEvaluationTests.java index 4f50ad1d2d..f4b28150d4 100644 --- a/src/testcases/org/apache/poi/hssf/record/formula/functions/AllIndividualFunctionEvaluationTests.java +++ b/src/testcases/org/apache/poi/hssf/record/formula/functions/AllIndividualFunctionEvaluationTests.java @@ -33,28 +33,31 @@ public final class AllIndividualFunctionEvaluationTests { result.addTestSuite(TestCountFuncs.class); result.addTestSuite(TestDate.class); result.addTestSuite(TestDays360.class); - result.addTestSuite(TestFind.class); result.addTestSuite(TestFinanceLib.class); + result.addTestSuite(TestFind.class); result.addTestSuite(TestIndex.class); result.addTestSuite(TestIndexFunctionFromSpreadsheet.class); result.addTestSuite(TestIndirect.class); result.addTestSuite(TestIsBlank.class); result.addTestSuite(TestLen.class); result.addTestSuite(TestLookupFunctionsFromSpreadsheet.class); - result.addTestSuite(TestMid.class); - result.addTestSuite(TestMathX.class); result.addTestSuite(TestMatch.class); + result.addTestSuite(TestMathX.class); + result.addTestSuite(TestMid.class); result.addTestSuite(TestNper.class); - result.addTestSuite(TestPmt.class); result.addTestSuite(TestOffset.class); + result.addTestSuite(TestPmt.class); + result.addTestSuite(TestRoundFuncs.class); result.addTestSuite(TestRowCol.class); + result.addTestSuite(TestStatsLib.class); result.addTestSuite(TestSubtotal.class); result.addTestSuite(TestSumif.class); result.addTestSuite(TestSumproduct.class); - result.addTestSuite(TestStatsLib.class); + result.addTestSuite(TestText.class); result.addTestSuite(TestTFunc.class); result.addTestSuite(TestTime.class); result.addTestSuite(TestTrim.class); + result.addTestSuite(TestTrunc.class); result.addTestSuite(TestValue.class); result.addTestSuite(TestXYNumericFunction.class); return result; diff --git a/src/testcases/org/apache/poi/hssf/usermodel/AllUserModelTests.java b/src/testcases/org/apache/poi/hssf/usermodel/AllUserModelTests.java index 632e0b5133..bf43435613 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/AllUserModelTests.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/AllUserModelTests.java @@ -30,6 +30,7 @@ public class AllUserModelTests { public static Test suite() { TestSuite result = new TestSuite(AllUserModelTests.class.getName()); + result.addTestSuite(TestBug42464.class); result.addTestSuite(TestBugs.class); result.addTestSuite(TestCellStyle.class); result.addTestSuite(TestCloneSheet.class); @@ -37,18 +38,21 @@ public class AllUserModelTests { result.addTestSuite(TestEscherGraphics.class); result.addTestSuite(TestEscherGraphics2d.class); result.addTestSuite(TestFontDetails.class); - result.addTestSuite(TestFormulas.class); result.addTestSuite(TestFormulaEvaluatorBugs.class); result.addTestSuite(TestFormulaEvaluatorDocs.class); + result.addTestSuite(TestFormulas.class); result.addTestSuite(TestHSSFCell.class); result.addTestSuite(TestHSSFClientAnchor.class); result.addTestSuite(TestHSSFComment.class); result.addTestSuite(TestHSSFConditionalFormatting.class); + result.addTestSuite(TestHSSFDataFormat.class); result.addTestSuite(TestHSSFDataFormatter.class); result.addTestSuite(TestHSSFDateUtil.class); + result.addTestSuite(TestHSSFFont.class); result.addTestSuite(TestHSSFFormulaEvaluator.class); result.addTestSuite(TestHSSFHeaderFooter.class); result.addTestSuite(TestHSSFHyperlink.class); + result.addTestSuite(TestHSSFName.class); result.addTestSuite(TestHSSFOptimiser.class); result.addTestSuite(TestHSSFPalette.class); result.addTestSuite(TestHSSFPatriarch.class); @@ -57,16 +61,16 @@ public class AllUserModelTests { result.addTestSuite(TestHSSFRichTextString.class); result.addTestSuite(TestHSSFRow.class); result.addTestSuite(TestHSSFSheet.class); + result.addTestSuite(TestHSSFSheetShiftRows.class); result.addTestSuite(TestHSSFSheetUpdateArrayFormulas.class); result.addTestSuite(TestHSSFTextbox.class); result.addTestSuite(TestHSSFWorkbook.class); - result.addTestSuite(TestHSSFName.class); result.addTestSuite(TestOLE2Embeding.class); result.addTestSuite(TestPOIFSProperties.class); result.addTestSuite(TestReadWriteChart.class); + result.addTestSuite(TestRowStyle.class); result.addTestSuite(TestSanityChecker.class); result.addTestSuite(TestSheetHiding.class); - result.addTestSuite(TestHSSFSheetShiftRows.class); if (false) { // deliberately avoiding this one result.addTestSuite(TestUnfixedBugs.class); } diff --git a/src/testcases/org/apache/poi/poifs/filesystem/AllPOIFSFileSystemTests.java b/src/testcases/org/apache/poi/poifs/filesystem/AllPOIFSFileSystemTests.java index 2a0319afee..9c8f6acd74 100644 --- a/src/testcases/org/apache/poi/poifs/filesystem/AllPOIFSFileSystemTests.java +++ b/src/testcases/org/apache/poi/poifs/filesystem/AllPOIFSFileSystemTests.java @@ -22,7 +22,7 @@ import junit.framework.TestSuite; /** * Tests for org.apache.poi.poifs.filesystem
- * + * * @author Josh Micich */ public final class AllPOIFSFileSystemTests { @@ -38,6 +38,7 @@ public final class AllPOIFSFileSystemTests { result.addTestSuite(TestEmptyDocument.class); result.addTestSuite(TestOffice2007XMLException.class); result.addTestSuite(TestPOIFSDocumentPath.class); + result.addTestSuite(TestPOIFSFileSystem.class); result.addTestSuite(TestPropertySorter.class); return result; } diff --git a/src/testcases/org/apache/poi/ss/util/AllSSUtilTests.java b/src/testcases/org/apache/poi/ss/util/AllSSUtilTests.java index 49bdfadfa5..7ecf90d7b5 100644 --- a/src/testcases/org/apache/poi/ss/util/AllSSUtilTests.java +++ b/src/testcases/org/apache/poi/ss/util/AllSSUtilTests.java @@ -27,6 +27,7 @@ import junit.framework.TestSuite; public final class AllSSUtilTests { public static Test suite() { TestSuite result = new TestSuite(AllSSUtilTests.class.getName()); + result.addTestSuite(TestCellRangeAddress.class); result.addTestSuite(TestCellReference.class); result.addTestSuite(TestExpandedDouble.class); result.addTestSuite(TestNumberComparer.class);