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 2554a46eaf
commit eeff9989ee

View 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();