simplify unit test using assertContainsIgnoreCase

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1756357 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2016-08-15 07:31:43 +00:00
parent 8d38e8e674
commit 16be8e597b

View File

@ -18,6 +18,7 @@
package org.apache.poi.hslf.extractor; package org.apache.poi.hslf.extractor;
import static org.apache.poi.POITestCase.assertContains; import static org.apache.poi.POITestCase.assertContains;
import static org.apache.poi.POITestCase.assertContainsIgnoreCase;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNotNull;
@ -26,7 +27,6 @@ import static org.junit.Assert.assertTrue;
import java.io.ByteArrayOutputStream; import java.io.ByteArrayOutputStream;
import java.io.InputStream; import java.io.InputStream;
import java.util.List; import java.util.List;
import java.util.Locale;
import org.apache.poi.POIDataSamples; import org.apache.poi.POIDataSamples;
import org.apache.poi.hslf.model.OLEShape; import org.apache.poi.hslf.model.OLEShape;
@ -355,7 +355,7 @@ public final class TestExtractor {
ppe = new PowerPointExtractor(hslf); ppe = new PowerPointExtractor(hslf);
text = ppe.getText(); text = ppe.getText();
assertContains(text.toLowerCase(Locale.ROOT), "master"); assertContainsIgnoreCase(text, "master");
assertContains(text, masterText); assertContains(text, masterText);
} }