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 19da6f755..a68d761a7 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();