cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carsten Ziegeler <cziege...@apache.org>
Subject Re: [2.1.10] WildcardHelperTestCase fails
Date Tue, 05 Dec 2006 10:02:32 GMT
Afaik, the code for the wildcard helper has been replaced after that by
someone else.

Carsten
Bertrand Delacretaz wrote:
> Just tried to run the junit tests on BRANCH_2_1_X, and the second
> assertion in WildcardHelperTestCase fails:
> 
>   public void testEndPattern() throws Exception {
>         final Map resultMap = new HashMap();
>         final String pattern = "*/";
>         final int[] expr = WildcardHelper.compilePattern(pattern);
>         boolean result = WildcardHelper.match(resultMap, "foo/bar/", expr);
> 
>         // this one passes
>         assertFalse("Url 'foo/bar/' should not match pattern '*/'.", result);
> 
>         // this one fails
>         result = WildcardHelper.match(resultMap, "test/foo/bar/", expr);
>         assertFalse("Url 'test/foo/bar/' should not match pattern
> '*/'.", result);
> 
>         result = WildcardHelper.match(resultMap, "foo/", expr);
>         assertTrue("Url 'foo/' should match pattern '*/'", result);
> 
> IIUC, this is related to http://tinyurl.com/ydvkcb , but Carsten says
> in that thread that the bug has been fixed. Any clues?
> 
> (environment: macosx 10.4.8, JDK 1.5.0_06)
> 
> -Bertrand
> 


-- 
Carsten Ziegeler - Chief Architect
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/

Mime
View raw message