cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bertrand Delacretaz" <bdelacre...@apache.org>
Subject [2.1.10] WildcardHelperTestCase fails
Date Tue, 05 Dec 2006 07:56:39 GMT
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

Mime
View raw message