From: Javen O'Neal Date: Wed, 19 Oct 2016 23:06:35 +0000 (+0000) Subject: StringUtil.count was renamed to StringUtil.countMatches X-Git-Tag: REL_3_16_BETA1~72 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=55cc811908f15a9947e32ecfdd66383fed0b1341;p=poi.git StringUtil.count was renamed to StringUtil.countMatches git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1765732 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/ooxml/testcases/org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java b/src/ooxml/testcases/org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java index 19da6f7554..a68d761a79 100644 --- a/src/ooxml/testcases/org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java +++ b/src/ooxml/testcases/org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java @@ -54,7 +54,7 @@ public class TestXWPFWordExtractor extends TestCase { )); // Check number of paragraphs by counting number of newlines - int numberOfParagraphs = StringUtil.count(text, '\n'); + int numberOfParagraphs = StringUtil.countMatches(text, '\n'); assertEquals(3, numberOfParagraphs); extractor.close(); @@ -87,7 +87,7 @@ public class TestXWPFWordExtractor extends TestCase { )); // Check number of paragraphs by counting number of newlines - int numberOfParagraphs = StringUtil.count(text, '\n'); + int numberOfParagraphs = StringUtil.countMatches(text, '\n'); assertEquals(134, numberOfParagraphs); extractor.close();