directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r493214 - /directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/OtherMailboxSyntaxCheckerTest.java
Date Fri, 05 Jan 2007 22:38:25 GMT
Author: elecharny
Date: Fri Jan  5 14:38:25 2007
New Revision: 493214

URL: http://svn.apache.org/viewvc?view=rev&rev=493214
Log:
Fixed a bad usage of specific chars instead of using unicode into a String.

Modified:
    directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/OtherMailboxSyntaxCheckerTest.java

Modified: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/OtherMailboxSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/OtherMailboxSyntaxCheckerTest.java?view=diff&rev=493214&r1=493213&r2=493214
==============================================================================
--- directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/OtherMailboxSyntaxCheckerTest.java
(original)
+++ directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/OtherMailboxSyntaxCheckerTest.java
Fri Jan  5 14:38:25 2007
@@ -50,10 +50,7 @@
         assertFalse( checker.isValidSyntax( "%$test" ) );
         assertFalse( checker.isValidSyntax( "test$test$test" ) );
         assertFalse( checker.isValidSyntax( "test$test$" ) );
-        
-        // line below causes failures on ubuntu ppc
-        
-        // assertFalse( checker.isValidSyntax( new String( new byte[]{ 'm', 'a', 'i', 'l',
'$', 0x00, 0x7F, (byte)0x80 }, "UTF-8" ) ) );
+        assertFalse( checker.isValidSyntax( "mail$\u0000\u007F\u0080" ) );
     }
     
     



Mime
View raw message