Skip to content

Commit

Permalink
Fix imports for new version of poi-ooxml
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Warren authored and paulcwarren committed Apr 17, 2020
1 parent d3417ad commit 2f4e6c5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
Expand Up @@ -3,7 +3,7 @@
import internal.org.springframework.renditions.poi.POIServiceImpl;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.poi.POIXMLProperties;
import org.apache.poi.ooxml.POIXMLProperties;
import org.apache.poi.xwpf.usermodel.XWPFDocument;
import org.springframework.content.commons.renditions.RenditionProvider;
import org.springframework.content.renditions.RenditionException;
Expand Down
Expand Up @@ -57,7 +57,7 @@ public class POIServiceTest {
});
Context("given an invalid inputstream", () -> {
BeforeEach(() -> {
stream = new ByteArrayInputStream("".getBytes());
stream = new ByteArrayInputStream("asdhg".getBytes());
});
It("should throw an exception", () -> {
try {
Expand Down
Expand Up @@ -5,9 +5,6 @@
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.rendering.ImageType;
import org.apache.pdfbox.rendering.PDFRenderer;
import org.apache.poi.POIXMLProperties;
import org.apache.poi.openxml4j.exceptions.NotOfficeXmlFileException;
import org.apache.poi.xwpf.usermodel.XWPFDocument;
import org.junit.runner.RunWith;
import org.springframework.content.commons.renditions.RenditionProvider;
import org.springframework.content.renditions.RenditionException;
Expand Down
Expand Up @@ -6,8 +6,8 @@

import com.github.paulcwarren.ginkgo4j.Ginkgo4jConfiguration;
import com.github.paulcwarren.ginkgo4j.Ginkgo4jRunner;
import org.apache.poi.POIXMLException;
import org.apache.poi.POIXMLProperties;
import org.apache.poi.ooxml.POIXMLException;
import org.apache.poi.ooxml.POIXMLProperties;
import org.apache.poi.openxml4j.exceptions.NotOfficeXmlFileException;
import org.apache.poi.xwpf.usermodel.XWPFDocument;
import org.junit.runner.RunWith;
Expand Down

0 comments on commit 2f4e6c5

Please sign in to comment.