]> source.dussan.org Git - poi.git/commitdiff
Bug 57355: Fix test-compilation casued by moving the code to the base-test-class
authorDominik Stadler <centic@apache.org>
Tue, 16 Dec 2014 11:18:21 +0000 (11:18 +0000)
committerDominik Stadler <centic@apache.org>
Tue, 16 Dec 2014 11:18:21 +0000 (11:18 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1645922 13f79535-47bb-0310-9956-ffa450edef68

src/testcases/org/apache/poi/ss/usermodel/BaseTestPicture.java

index 731923d88cfac916e0e5825c1541d5224ba28039..e573e79aef79033a0241b3ed474cfe91e2d88632 100644 (file)
@@ -28,10 +28,10 @@ import java.io.IOException;
 
 import javax.imageio.ImageIO;
 
+import org.apache.poi.hssf.HSSFITestDataProvider;
 import org.apache.poi.ss.ITestDataProvider;
 import org.apache.poi.ss.util.ImageUtils;
 import org.apache.poi.util.Units;
-import org.apache.poi.xssf.XSSFITestDataProvider;
 import org.junit.Test;
 
 /**
@@ -108,7 +108,7 @@ public abstract class BaseTestPicture {
         Drawing drawing = sheet.createDrawingPatriarch();
         CreationHelper createHelper = wb.getCreationHelper();
 
-        final byte[] bytes = XSSFITestDataProvider.instance.getTestDataFileContent("logoKarmokar4.png");
+        final byte[] bytes = HSSFITestDataProvider.instance.getTestDataFileContent("logoKarmokar4.png");
         
         row.setHeightInPoints(getImageSize(bytes).y);