From 7e926dfa36aa9775339fa13ebca1193113fd6daf Mon Sep 17 00:00:00 2001 From: Sergey Vladimirov Date: Fri, 8 Jul 2011 14:37:42 +0000 Subject: [PATCH] add test case to check if email from Bug47286.doc is present in HTML git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1144341 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/poi/hwpf/converter/TestWordToHtmlConverter.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/scratchpad/testcases/org/apache/poi/hwpf/converter/TestWordToHtmlConverter.java b/src/scratchpad/testcases/org/apache/poi/hwpf/converter/TestWordToHtmlConverter.java index 420add7454..0cee3e7e2e 100644 --- a/src/scratchpad/testcases/org/apache/poi/hwpf/converter/TestWordToHtmlConverter.java +++ b/src/scratchpad/testcases/org/apache/poi/hwpf/converter/TestWordToHtmlConverter.java @@ -90,6 +90,12 @@ public class TestWordToHtmlConverter extends TestCase .contains( "" ) ); } + public void testEmailhyperlink() throws Exception + { + String result = getHtmlText( "Bug47286.doc" ); + assertTrue( result.contains( "provisastpet@mfa.gov.cy" ) ); + } + public void testEquation() throws Exception { String result = getHtmlText( "equation.doc" );