poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ser...@apache.org
Subject svn commit: r1145495 - /poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/converter/TestWordToHtmlConverter.java
Date Tue, 12 Jul 2011 08:57:05 GMT
Author: sergey
Date: Tue Jul 12 08:57:05 2011
New Revision: 1145495

URL: http://svn.apache.org/viewvc?rev=1145495&view=rev
Log:
convert unicode string constants to \uxxx-s

Modified:
    poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/converter/TestWordToHtmlConverter.java

Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/converter/TestWordToHtmlConverter.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/converter/TestWordToHtmlConverter.java?rev=1145495&r1=1145494&r2=1145495&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/converter/TestWordToHtmlConverter.java
(original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/converter/TestWordToHtmlConverter.java
Tue Jul 12 08:57:05 2011
@@ -41,7 +41,7 @@ public class TestWordToHtmlConverter ext
     {
         if ( !result.contains( substring ) )
             fail( "Substring \"" + substring
-                    + "\" not found in the following string: \"" + substring
+                    + "\" not found in the following string: \"" + result
                     + "\"" );
     }
 
@@ -80,8 +80,11 @@ public class TestWordToHtmlConverter ext
     public void testBug33519() throws Exception
     {
         String result = getHtmlText( "Bug33519.doc" );
-        assertContains( result, "Планински турове"
);
-        assertContains( result, "Явор Асенов" );
+        assertContains(
+                result,
+                "\u041F\u043B\u0430\u043D\u0438\u043D\u0441\u043A\u0438 \u0442\u0443\u0440\u043E\u0432\u0435"
);
+        assertContains( result,
+                "\u042F\u0432\u043E\u0440 \u0410\u0441\u0435\u043D\u043E\u0432" );
     }
 
     public void testBug46610_2() throws Exception



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message