mirror of https://github.com/apache/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
This commit is contained in:
parent
d5d5419d9c
commit
55cc811908
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue