]> source.dussan.org Git - poi.git/commitdiff
convert unicode string constants to \uxxx-s
authorSergey Vladimirov <sergey@apache.org>
Tue, 12 Jul 2011 08:57:05 +0000 (08:57 +0000)
committerSergey Vladimirov <sergey@apache.org>
Tue, 12 Jul 2011 08:57:05 +0000 (08:57 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1145495 13f79535-47bb-0310-9956-ffa450edef68

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

index 598b734ed97a797cf75097736d56411adb9db936..1537ad59d29f580f2803bc38de0662d37898ecc2 100644 (file)
@@ -41,7 +41,7 @@ public class TestWordToHtmlConverter extends TestCase
     {
         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 extends TestCase
     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