diff options
author | Dominik Stadler <centic@apache.org> | 2021-10-22 14:31:52 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2021-10-22 14:31:52 +0000 |
commit | c7e4307ac475934e62275d3cbb1856ddd241da5e (patch) | |
tree | b2236ed9f15c3604ccad761e50f430f895c91b4f /poi-integration/src | |
parent | a34768d3f8051df5cecb8317ff7dd2dc7d804912 (diff) | |
download | poi-c7e4307ac475934e62275d3cbb1856ddd241da5e.tar.gz poi-c7e4307ac475934e62275d3cbb1856ddd241da5e.zip |
Make file-handlers for integration-test public to be able to use them in poi-mass-testing
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894478 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-integration/src')
15 files changed, 15 insertions, 15 deletions
diff --git a/poi-integration/src/test/java/org/apache/poi/stress/HDGFFileHandler.java b/poi-integration/src/test/java/org/apache/poi/stress/HDGFFileHandler.java index 80eccca5b0..dff65825e0 100644 --- a/poi-integration/src/test/java/org/apache/poi/stress/HDGFFileHandler.java +++ b/poi-integration/src/test/java/org/apache/poi/stress/HDGFFileHandler.java @@ -31,7 +31,7 @@ import org.apache.poi.hdgf.streams.TrailerStream; import org.apache.poi.poifs.filesystem.POIFSFileSystem; import org.junit.jupiter.api.Test; -class HDGFFileHandler extends POIFSFileHandler { +public class HDGFFileHandler extends POIFSFileHandler { @Override public void handleFile(InputStream stream, String path) throws IOException { POIFSFileSystem poifs = new POIFSFileSystem(stream); diff --git a/poi-integration/src/test/java/org/apache/poi/stress/HMEFFileHandler.java b/poi-integration/src/test/java/org/apache/poi/stress/HMEFFileHandler.java index fe1788d29e..2d1f755d4f 100644 --- a/poi-integration/src/test/java/org/apache/poi/stress/HMEFFileHandler.java +++ b/poi-integration/src/test/java/org/apache/poi/stress/HMEFFileHandler.java @@ -32,7 +32,7 @@ import org.apache.poi.poifs.filesystem.FileMagic; import org.apache.poi.util.LittleEndian; import org.junit.jupiter.api.Test; -class HMEFFileHandler extends AbstractFileHandler { +public class HMEFFileHandler extends AbstractFileHandler { @Override public void handleExtracting(File file) throws Exception { diff --git a/poi-integration/src/test/java/org/apache/poi/stress/HPBFFileHandler.java b/poi-integration/src/test/java/org/apache/poi/stress/HPBFFileHandler.java index 6da0110e19..5897803e74 100644 --- a/poi-integration/src/test/java/org/apache/poi/stress/HPBFFileHandler.java +++ b/poi-integration/src/test/java/org/apache/poi/stress/HPBFFileHandler.java @@ -27,7 +27,7 @@ import org.apache.poi.hpbf.extractor.PublisherTextExtractor; import org.apache.poi.poifs.filesystem.POIFSFileSystem; import org.junit.jupiter.api.Test; -class HPBFFileHandler extends POIFSFileHandler { +public class HPBFFileHandler extends POIFSFileHandler { @Override public void handleFile(InputStream stream, String path) throws Exception { HPBFDocument pub = new HPBFDocument(new POIFSFileSystem(stream)); diff --git a/poi-integration/src/test/java/org/apache/poi/stress/HPSFFileHandler.java b/poi-integration/src/test/java/org/apache/poi/stress/HPSFFileHandler.java index 274a3880e6..4b8d0016e2 100644 --- a/poi-integration/src/test/java/org/apache/poi/stress/HPSFFileHandler.java +++ b/poi-integration/src/test/java/org/apache/poi/stress/HPSFFileHandler.java @@ -45,7 +45,7 @@ import org.apache.poi.poifs.filesystem.POIFSFileSystem; import org.apache.poi.util.TempFile; import org.junit.jupiter.api.Test; -class HPSFFileHandler extends POIFSFileHandler { +public class HPSFFileHandler extends POIFSFileHandler { private static final String NL = System.getProperty("line.separator"); private static final ThreadLocal<File> copyOutput = ThreadLocal.withInitial(HPSFFileHandler::getTempFile); diff --git a/poi-integration/src/test/java/org/apache/poi/stress/HSLFFileHandler.java b/poi-integration/src/test/java/org/apache/poi/stress/HSLFFileHandler.java index fc82b6612d..d496d0b85a 100644 --- a/poi-integration/src/test/java/org/apache/poi/stress/HSLFFileHandler.java +++ b/poi-integration/src/test/java/org/apache/poi/stress/HSLFFileHandler.java @@ -29,7 +29,7 @@ import org.apache.poi.hslf.usermodel.HSLFSlideShow; import org.apache.poi.hslf.usermodel.HSLFSlideShowImpl; import org.junit.jupiter.api.Test; -class HSLFFileHandler extends SlideShowHandler { +public class HSLFFileHandler extends SlideShowHandler { private static final Logger LOGGER = LogManager.getLogger(HSLFFileHandler.class); diff --git a/poi-integration/src/test/java/org/apache/poi/stress/HSMFFileHandler.java b/poi-integration/src/test/java/org/apache/poi/stress/HSMFFileHandler.java index 847419ba88..c133b8df1f 100644 --- a/poi-integration/src/test/java/org/apache/poi/stress/HSMFFileHandler.java +++ b/poi-integration/src/test/java/org/apache/poi/stress/HSMFFileHandler.java @@ -27,7 +27,7 @@ import org.apache.poi.hsmf.datatypes.AttachmentChunks; import org.apache.poi.hsmf.datatypes.DirectoryChunk; import org.junit.jupiter.api.Test; -class HSMFFileHandler extends POIFSFileHandler { +public class HSMFFileHandler extends POIFSFileHandler { @Override public void handleFile(InputStream stream, String path) throws Exception { MAPIMessage mapi = new MAPIMessage(stream); diff --git a/poi-integration/src/test/java/org/apache/poi/stress/HSSFFileHandler.java b/poi-integration/src/test/java/org/apache/poi/stress/HSSFFileHandler.java index 9e371362bf..62e0d7cbc3 100644 --- a/poi-integration/src/test/java/org/apache/poi/stress/HSSFFileHandler.java +++ b/poi-integration/src/test/java/org/apache/poi/stress/HSSFFileHandler.java @@ -36,7 +36,7 @@ import org.apache.poi.ss.usermodel.Sheet; import org.apache.commons.io.output.NullPrintStream; import org.junit.jupiter.api.Test; -class HSSFFileHandler extends SpreadsheetHandler { +public class HSSFFileHandler extends SpreadsheetHandler { private final POIFSFileHandler delegate = new POIFSFileHandler(); @Override public void handleFile(InputStream stream, String path) throws Exception { diff --git a/poi-integration/src/test/java/org/apache/poi/stress/HWPFFileHandler.java b/poi-integration/src/test/java/org/apache/poi/stress/HWPFFileHandler.java index da07a9b87b..2311e31e9b 100644 --- a/poi-integration/src/test/java/org/apache/poi/stress/HWPFFileHandler.java +++ b/poi-integration/src/test/java/org/apache/poi/stress/HWPFFileHandler.java @@ -30,7 +30,7 @@ import org.apache.poi.hwpf.model.PicturesTable; import org.apache.poi.hwpf.usermodel.Picture; import org.junit.jupiter.api.Test; -class HWPFFileHandler extends POIFSFileHandler { +public class HWPFFileHandler extends POIFSFileHandler { @Override public void handleFile(InputStream stream, String path) throws Exception { HWPFDocument doc = new HWPFDocument(stream); diff --git a/poi-integration/src/test/java/org/apache/poi/stress/OPCFileHandler.java b/poi-integration/src/test/java/org/apache/poi/stress/OPCFileHandler.java index 3b55861325..7ad6e44488 100644 --- a/poi-integration/src/test/java/org/apache/poi/stress/OPCFileHandler.java +++ b/poi-integration/src/test/java/org/apache/poi/stress/OPCFileHandler.java @@ -31,7 +31,7 @@ import org.apache.poi.openxml4j.opc.PackagePart; import org.apache.poi.xwpf.usermodel.XWPFRelation; import org.junit.jupiter.api.Test; -class OPCFileHandler extends AbstractFileHandler { +public class OPCFileHandler extends AbstractFileHandler { private static final Set<String> EXPECTED_FAILURES = StressTestUtils.unmodifiableHashSet( "document/truncated62886.docx" ); diff --git a/poi-integration/src/test/java/org/apache/poi/stress/POIFSFileHandler.java b/poi-integration/src/test/java/org/apache/poi/stress/POIFSFileHandler.java index 68c5798562..5dd01bdff5 100644 --- a/poi-integration/src/test/java/org/apache/poi/stress/POIFSFileHandler.java +++ b/poi-integration/src/test/java/org/apache/poi/stress/POIFSFileHandler.java @@ -29,7 +29,7 @@ import org.apache.poi.hpsf.extractor.HPSFPropertiesExtractor; import org.apache.poi.poifs.filesystem.POIFSFileSystem; import org.junit.jupiter.api.Test; -class POIFSFileHandler extends AbstractFileHandler { +public class POIFSFileHandler extends AbstractFileHandler { @Override public void handleFile(InputStream stream, String path) throws Exception { diff --git a/poi-integration/src/test/java/org/apache/poi/stress/XDGFFileHandler.java b/poi-integration/src/test/java/org/apache/poi/stress/XDGFFileHandler.java index d588e4b496..77f84ae5d4 100644 --- a/poi-integration/src/test/java/org/apache/poi/stress/XDGFFileHandler.java +++ b/poi-integration/src/test/java/org/apache/poi/stress/XDGFFileHandler.java @@ -23,7 +23,7 @@ import org.apache.poi.openxml4j.opc.PackageAccess; import org.apache.poi.xdgf.usermodel.XmlVisioDocument; import org.junit.jupiter.api.Test; -class XDGFFileHandler extends AbstractFileHandler { +public class XDGFFileHandler extends AbstractFileHandler { @Override public void handleFile(InputStream stream, String path) throws Exception { // ignore password protected files diff --git a/poi-integration/src/test/java/org/apache/poi/stress/XSLFFileHandler.java b/poi-integration/src/test/java/org/apache/poi/stress/XSLFFileHandler.java index 9ab5c4b52d..421de3435b 100644 --- a/poi-integration/src/test/java/org/apache/poi/stress/XSLFFileHandler.java +++ b/poi-integration/src/test/java/org/apache/poi/stress/XSLFFileHandler.java @@ -30,7 +30,7 @@ import org.apache.poi.xslf.usermodel.XMLSlideShow; import org.apache.poi.xslf.usermodel.XSLFSlideShow; import org.junit.jupiter.api.Test; -class XSLFFileHandler extends SlideShowHandler { +public class XSLFFileHandler extends SlideShowHandler { @Override public void handleFile(InputStream stream, String path) throws Exception { try (XMLSlideShow slide = new XMLSlideShow(stream); diff --git a/poi-integration/src/test/java/org/apache/poi/stress/XSSFBFileHandler.java b/poi-integration/src/test/java/org/apache/poi/stress/XSSFBFileHandler.java index dd25e4148d..b8a247524f 100644 --- a/poi-integration/src/test/java/org/apache/poi/stress/XSSFBFileHandler.java +++ b/poi-integration/src/test/java/org/apache/poi/stress/XSSFBFileHandler.java @@ -30,7 +30,7 @@ import org.apache.poi.xssf.extractor.XSSFBEventBasedExcelExtractor; import org.apache.poi.xssf.usermodel.XSSFWorkbook; import org.junit.jupiter.api.Test; -class XSSFBFileHandler extends AbstractFileHandler { +public class XSSFBFileHandler extends AbstractFileHandler { static { //add expected failures here: diff --git a/poi-integration/src/test/java/org/apache/poi/stress/XSSFFileHandler.java b/poi-integration/src/test/java/org/apache/poi/stress/XSSFFileHandler.java index ba60188040..0f08f95d31 100644 --- a/poi-integration/src/test/java/org/apache/poi/stress/XSSFFileHandler.java +++ b/poi-integration/src/test/java/org/apache/poi/stress/XSSFFileHandler.java @@ -61,7 +61,7 @@ import org.apache.poi.xssf.usermodel.XSSFWorkbook; import org.junit.jupiter.api.Test; import org.xml.sax.SAXException; -class XSSFFileHandler extends SpreadsheetHandler { +public class XSSFFileHandler extends SpreadsheetHandler { @Override public void handleFile(InputStream stream, String path) throws Exception { // ignore password protected files if password is unknown diff --git a/poi-integration/src/test/java/org/apache/poi/stress/XWPFFileHandler.java b/poi-integration/src/test/java/org/apache/poi/stress/XWPFFileHandler.java index 999869773d..a3169a7c03 100644 --- a/poi-integration/src/test/java/org/apache/poi/stress/XWPFFileHandler.java +++ b/poi-integration/src/test/java/org/apache/poi/stress/XWPFFileHandler.java @@ -26,7 +26,7 @@ import org.apache.poi.ooxml.POIXMLException; import org.apache.poi.xwpf.usermodel.XWPFDocument; import org.junit.jupiter.api.Test; -class XWPFFileHandler extends AbstractFileHandler { +public class XWPFFileHandler extends AbstractFileHandler { private static final Set<String> EXPECTED_FAILURES = StressTestUtils.unmodifiableHashSet( "document/truncated62886.docx", "document/ExternalEntityInText.docx" ); |