Apache Directory Project - Re: svn commit: r485050 - /directory/trunks/shared/ldap/src/test/java/org/apache/direc

This is Interesting: Free IT Magazines  
Home > Archive > Apache Directory Project > December 2006 > Re: svn commit: r485050 - /directory/trunks/shared/ldap/src/test/java/org/apache/direc





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: svn commit: r485050 - /directory/trunks/shared/ldap/src/test/java/org/apache/direc
Trustin Lee

2006-12-12, 1:11 am

On 12/10/06, elecharny-1oDqGaOF3Lkdnm+yROfE0A@public.gmane.org <elecharny-1oDqGaOF3Lkdnm+yROfE0A@public.gmane.org> wrote:
>
> Author: elecharny
> Date: Sat Dec 9 11:31:38 2006
> New Revision: 485050
>
> URL: http://svn.apache.org/viewvc?view=rev&rev=485050
> Log:
> Added some SC tests, and fixed a buggy test



<snip/>

Added:
> directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/Ia5StringSyntaxCheckerTest.java
> URL:
> http://svn.apache.org/viewvc/direct...auto&rev=485050
>
> ========================================
======================================
> ---
> directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/Ia5StringSyntaxCheckerTest.java
> (added)
> +++
> directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/Ia5StringSyntaxCheckerTest.java
> Sat Dec 9 11:31:38 2006



<snip/>

+public class Ia5StringSyntaxCheckerTest extends TestCase
> +{



<snip/>

+ public void testWrongCase()
> + {
> + assertFalse( checker.isValidSyntax( "" ) );
> + assertFalse( checker.isValidSyntax( "" ) );
> + assertFalse( checker.isValidSyntax( "" ) );
> + assertFalse( checker.isValidSyntax( "" ) );
> + assertFalse( checker.isValidSyntax( "" ) );
> + assertFalse( checker.isValidSyntax( "" ) );
> + assertFalse( checker.isValidSyntax( "" ) );
> + assertFalse( checker.isValidSyntax( "" ) );
> + assertFalse( checker.isValidSyntax( "" ) );
> + assertFalse( checker.isValidSyntax( "" ) );
> + assertFalse( checker.isValidSyntax( "" ) );
> + }



Characters other than US-ASCII will make the code uncompilable. The default
system encoding of my Eclipse is UTF-8, so it denies to compile it. You
could use '\uxxxx' syntax instead to make sure the code is compiled and the
compiled byte code is identical across different systems.
PrintableStringSyntaxCheckTest also has the same problem. I tried to fix
this problem by replacing these special characters into '\uxxxx' expression,
but I couldn't find any easy way to get the unicode value of each character
and am afraid that I might break the test case.

Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP key fingerprints:
* E167 E6AF E73A CBCE EE41 4A29 544D DE48 FE95 4E7E
* B693 628E 6047 4F8F CFA4 455E 1C62 A7DC 0255 ECA6

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com