From 55cc811908f15a9947e32ecfdd66383fed0b1341 Mon Sep 17 00:00:00 2001 From: Javen O'Neal Date: Wed, 19 Oct 2016 23:06:35 +0000 Subject: [PATCH] StringUtil.count was renamed to StringUtil.countMatches git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1765732 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 19da6f7554..a68d761a79 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(); -- 2.39.5