You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2006/07/30 23:15:45 UTC
svn commit: r426944 -
/directory/branches/shared/optimization/ldap/src/test/java/org/apache/directory/shared/ldap/ldif/LdifReaderTest.java
Author: elecharny
Date: Sun Jul 30 14:15:45 2006
New Revision: 426944
URL: http://svn.apache.org/viewvc?rev=426944&view=rev
Log:
Changed the UTF-8 chars to Unicode escaped chars. That will fix the
issue DIRSERVER_686
Modified:
directory/branches/shared/optimization/ldap/src/test/java/org/apache/directory/shared/ldap/ldif/LdifReaderTest.java
Modified: directory/branches/shared/optimization/ldap/src/test/java/org/apache/directory/shared/ldap/ldif/LdifReaderTest.java
URL: http://svn.apache.org/viewvc/directory/branches/shared/optimization/ldap/src/test/java/org/apache/directory/shared/ldap/ldif/LdifReaderTest.java?rev=426944&r1=426943&r2=426944&view=diff
==============================================================================
--- directory/branches/shared/optimization/ldap/src/test/java/org/apache/directory/shared/ldap/ldif/LdifReaderTest.java (original)
+++ directory/branches/shared/optimization/ldap/src/test/java/org/apache/directory/shared/ldap/ldif/LdifReaderTest.java Sun Jul 30 14:15:45 2006
@@ -483,7 +483,7 @@
assertEquals( "cn=app1,ou=applications,ou=conf,dc=apache,dc=org", entry.getDn() );
Attribute attr = entry.get( "cn" );
- assertTrue( attr.contains( "Emmanuel Lécharny".getBytes( "UTF-8" ) ) );
+ assertTrue( attr.contains( "Emmanuel L\u00e9charny".getBytes( "UTF-8" ) ) );
attr = entry.get( "objectclass" );
assertTrue( attr.contains( "top" ) );
@@ -526,7 +526,7 @@
assertEquals( "cn=app1,ou=applications,ou=conf,dc=apache,dc=org", entry.getDn() );
Attribute attr = entry.get( "cn" );
- assertTrue( attr.contains( "Emmanuel Lécharny ".getBytes( "UTF-8" ) ) );
+ assertTrue( attr.contains( "Emmanuel L\u00e9charny ".getBytes( "UTF-8" ) ) );
attr = entry.get( "objectclass" );
assertTrue( attr.contains( "top" ) );
@@ -792,7 +792,8 @@
"# dn:: ou=å¶æ¥é¨,o=Airius\n" +
"objectclass: top\n" +
"objectclass: organizationalUnit\n" +
- "ou:: 5Za25qWt6YOo\n" + "# ou:: å¶æ¥é¨\n" +
+ "ou:: 5Za25qWt6YOo\n" +
+ "# ou:: å¶æ¥é¨\n" +
"ou;lang-ja:: 5Za25qWt6YOo\n" +
"# ou;lang-ja:: å¶æ¥é¨\n" +
"ou;lang-ja;phonetic:: 44GI44GE44GO44KH44GG44G2\n" +
@@ -827,12 +828,11 @@
"title:: 5Za25qWt6YOoIOmDqOmVtw==\n" +
"# title:: å¶æ¥é¨ é¨é·\n" +
"givenname;lang-ja;phonetic:: 44KN44Gp44Gr44O8\n" +
- "# givenname;lang-ja;phonetic::\n" +
- " ãã©ã«ã¼\n" +
+ "# givenname;lang-ja;phonetic:: ãã©ã«ã¼\n" +
"sn;lang-ja;phonetic:: 44GK44GM44GV44KP44KJ\n" +
"# sn;lang-ja;phonetic:: ããããã\n" +
"cn;lang-ja;phonetic:: 44GK44GM44GV44KP44KJIOOCjeOBqeOBq+ODvA==\n" +
- "# cn;lang-ja;phonetic:: ããããã ãã©ã«ã¼\n" +
+ "# cn;lang-ja;phonetic:: ããããã ãã©ã«ã¼\n" +
"title;lang-ja;phonetic:: 44GI44GE44GO44KH44GG44G2IOOBtuOBoeOCh+OBhg==\n" +
"# title;lang-ja;phonetic::\n" +
"# ããããã㶠ã¶ã¡ãã\n" +
@@ -847,16 +847,17 @@
String[][][] values =
{
{
- { "dn", "ou=å¶æ¥é¨,o=Airius" },
+ { "dn", "ou=\u55b6\u696d\u90e8,o=Airius" }, // 55b6 = å¶, 696d = æ¥, 90e8 = é¨
{ "objectclass", "top" },
{ "objectclass", "organizationalUnit" },
- { "ou", "å¶æ¥é¨" },
- { "ou;lang-ja", "å¶æ¥é¨" },
- { "ou;lang-ja;phonetic", "ãããããã¶" },
+ { "ou", "\u55b6\u696d\u90e8" },
+ { "ou;lang-ja", "\u55b6\u696d\u90e8" },
+ { "ou;lang-ja;phonetic", "\u3048\u3044\u304e\u3087\u3046\u3076" }, // 3048 = ã, 3044 = ã, 304e = ã
+ // 3087 = ã, 3046 = ã, 3076 = ã¶
{ "ou;lang-en", "Sales" },
{ "description", "Japanese office" } },
{
- { "dn", "uid=rogasawara,ou=å¶æ¥é¨,o=Airius" },
+ { "dn", "uid=rogasawara,ou=\u55b6\u696d\u90e8,o=Airius" },
{ "userpassword", "{SHA}O3HSv1MusyL4kTjP+HKI5uxuNoM=" },
{ "objectclass", "top" },
{ "objectclass", "person" },
@@ -864,19 +865,19 @@
{ "objectclass", "inetOrgPerson" },
{ "uid", "rogasawara" },
{ "mail", "rogasawara@airius.co.jp" },
- { "givenname;lang-ja", "ãããã¼" },
- { "sn;lang-ja", "å°ç¬ å" },
- { "cn;lang-ja", "å°ç¬ å ãããã¼" },
- { "title;lang-ja", "å¶æ¥é¨ é¨é·" },
+ { "givenname;lang-ja", "\u30ed\u30c9\u30cb\u30fc" }, // 30ed = ã, 30c9 = ã, 30cb = ã, 30fc = ã¼
+ { "sn;lang-ja", "\u5c0f\u7b20\u539f" }, // 5c0f = å°, 7b20 = ç¬ , 539f = å
+ { "cn;lang-ja", "\u5c0f\u7b20\u539f \u30ed\u30c9\u30cb\u30fc" },
+ { "title;lang-ja", "\u55b6\u696d\u90e8 \u90e8\u9577" }, // 9577 = é·
{ "preferredlanguage", "ja" },
- { "givenname", "ãããã¼" },
- { "sn", "å°ç¬ å" },
- { "cn", "å°ç¬ å ãããã¼" },
- { "title", "å¶æ¥é¨ é¨é·" },
- { "givenname;lang-ja;phonetic", "ãã©ã«ã¼" },
- { "sn;lang-ja;phonetic", "ããããã" },
- { "cn;lang-ja;phonetic", "ããããã ãã©ã«ã¼" },
- { "title;lang-ja;phonetic", "ããããã㶠ã¶ã¡ãã" },
+ { "givenname", "\u30ed\u30c9\u30cb\u30fc" },
+ { "sn", "\u5c0f\u7b20\u539f" },
+ { "cn", "\u5c0f\u7b20\u539f \u30ed\u30c9\u30cb\u30fc" },
+ { "title", "\u55b6\u696d\u90e8 \u90e8\u9577" },
+ { "givenname;lang-ja;phonetic", "\u308d\u3069\u306b\u30fc" }, // 308d = ã,3069 = ã©, 306b = ã«
+ { "sn;lang-ja;phonetic", "\u304a\u304c\u3055\u308f\u3089" }, // 304a = ã, 304c = ã,3055 = ã,308f = ã, 3089 = ã
+ { "cn;lang-ja;phonetic", "\u304a\u304c\u3055\u308f\u3089 \u308d\u3069\u306b\u30fc" },
+ { "title;lang-ja;phonetic", "\u3048\u3044\u304e\u3087\u3046\u3076 \u3076\u3061\u3087\u3046" }, // 304E = ã, 3061 = ã¡
{ "givenname;lang-en", "Rodney" },
{ "sn;lang-en", "Ogasawara" },
{ "cn;lang-en", "Rodney Ogasawara" },