aboutsummaryrefslogtreecommitdiffstats
path: root/src/ooxml/testcases/org/apache/poi/xslf/usermodel/TestXSLFSlide.java
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2014-05-16 13:25:45 +0000
committerDominik Stadler <centic@apache.org>2014-05-16 13:25:45 +0000
commit764ec1df173d6362676b2938f19949cc1b498094 (patch)
treef43046fda98e47383d373679da2e8cd84790ee61 /src/ooxml/testcases/org/apache/poi/xslf/usermodel/TestXSLFSlide.java
parentb342bc5d8b3021d61aacaed91e2bae567bcd221d (diff)
downloadpoi-764ec1df173d6362676b2938f19949cc1b498094.tar.gz
poi-764ec1df173d6362676b2938f19949cc1b498094.zip
Apache POI - Use assertArrayEquals() instead of assertTrue(Arrays.equals()), this way we get better information on failure
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1595190 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/testcases/org/apache/poi/xslf/usermodel/TestXSLFSlide.java')
-rw-r--r--src/ooxml/testcases/org/apache/poi/xslf/usermodel/TestXSLFSlide.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/ooxml/testcases/org/apache/poi/xslf/usermodel/TestXSLFSlide.java b/src/ooxml/testcases/org/apache/poi/xslf/usermodel/TestXSLFSlide.java
index 3d73d41a25..ecfd70eac2 100644
--- a/src/ooxml/testcases/org/apache/poi/xslf/usermodel/TestXSLFSlide.java
+++ b/src/ooxml/testcases/org/apache/poi/xslf/usermodel/TestXSLFSlide.java
@@ -16,11 +16,13 @@
==================================================================== */
package org.apache.poi.xslf.usermodel;
-import junit.framework.TestCase;
-import org.apache.poi.xslf.XSLFTestDataSamples;
+import static org.junit.Assert.assertArrayEquals;
import java.awt.Color;
-import java.util.Arrays;
+
+import junit.framework.TestCase;
+
+import org.apache.poi.xslf.XSLFTestDataSamples;
/**
* @author Yegor Kozlov
@@ -157,7 +159,7 @@ public class TestXSLFSlide extends TestCase {
XSLFPictureShape sh4 = (XSLFPictureShape)shapes2[1];
XSLFPictureShape srcPic = (XSLFPictureShape)src.getSlides()[4].getShapes()[1];
- assertTrue(Arrays.equals(sh4.getPictureData().getData(), srcPic.getPictureData().getData()));
+ assertArrayEquals(sh4.getPictureData().getData(), srcPic.getPictureData().getData());
}
public void testMergeSlides(){