]> source.dussan.org Git - poi.git/commitdiff
StringUtil.count was renamed to StringUtil.countMatches
authorJaven O'Neal <onealj@apache.org>
Wed, 19 Oct 2016 23:06:35 +0000 (23:06 +0000)
committerJaven O'Neal <onealj@apache.org>
Wed, 19 Oct 2016 23:06:35 +0000 (23:06 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1765732 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/testcases/org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java

index 19da6f7554f7e21d5dca88e8a531ffd0932825c0..a68d761a79b1cc7e15b143de8d145f81f719a2f1 100644 (file)
@@ -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();