StringUtil.count was renamed to StringUtil.countMatches

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1765732 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2016-10-19 23:06:35 +00:00
parent d5d5419d9c
commit 55cc811908
1 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ public class TestXWPFWordExtractor extends TestCase {
)); ));
// Check number of paragraphs by counting number of newlines // Check number of paragraphs by counting number of newlines
int numberOfParagraphs = StringUtil.count(text, '\n'); int numberOfParagraphs = StringUtil.countMatches(text, '\n');
assertEquals(3, numberOfParagraphs); assertEquals(3, numberOfParagraphs);
extractor.close(); extractor.close();
@ -87,7 +87,7 @@ public class TestXWPFWordExtractor extends TestCase {
)); ));
// Check number of paragraphs by counting number of newlines // Check number of paragraphs by counting number of newlines
int numberOfParagraphs = StringUtil.count(text, '\n'); int numberOfParagraphs = StringUtil.countMatches(text, '\n');
assertEquals(134, numberOfParagraphs); assertEquals(134, numberOfParagraphs);
extractor.close(); extractor.close();