cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <giac...@apache.org>
Subject Re: svn commit: r416308 - /cocoon/trunk/core/cocoon-core/src/test/java/org/apache/cocoon/util/WildcardMatcherHelperTestCase.java
Date Thu, 22 Jun 2006 09:42:00 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 22 Jun 2006, cziegeler@apache.org wrote:

> Date: Thu, 22 Jun 2006 09:29:15 -0000
> From: cziegeler@apache.org
> Reply-To: dev@cocoon.apache.org
> To: cvs@cocoon.apache.org
> Subject: svn commit: r416308 -
>     /cocoon/trunk/core/cocoon-core/src/test/java/org/apache/cocoon/util/Wildca
>     rdMatcherHelperTestCase.java
> 
> Author: cziegeler
> Date: Thu Jun 22 02:29:15 2006
> New Revision: 416308
>
> URL: http://svn.apache.org/viewvc?rev=416308&view=rev
> Log:
> Add failing test
>
> Modified:
>    cocoon/trunk/core/cocoon-core/src/test/java/org/apache/cocoon/util/WildcardMatcherHelperTestCase.java
>
> Modified: cocoon/trunk/core/cocoon-core/src/test/java/org/apache/cocoon/util/WildcardMatcherHelperTestCase.java
> URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-core/src/test/java/org/apache/cocoon/util/WildcardMatcherHelperTestCase.java?rev=416308&r1=416307&r2=416308&view=diff
> ==============================================================================
> --- cocoon/trunk/core/cocoon-core/src/test/java/org/apache/cocoon/util/WildcardMatcherHelperTestCase.java
(original)
> +++ cocoon/trunk/core/cocoon-core/src/test/java/org/apache/cocoon/util/WildcardMatcherHelperTestCase.java
Thu Jun 22 02:29:15 2006
> @@ -173,7 +173,14 @@
>         assertEquals("", result.get("1"));
>     }
>
> -    public void testEmptyPattern() throws Exception {
> +    public void test21WildcardURIMatch()
> +    throws Exception {
> +        Map result = WildcardMatcherHelper.match("*/**", "samples/blocks/");
> +        assertNotNull(result);
> +        assertEquals("", result.get("1"));

Oh, if this test succeeds isn't it wrong? Shouldn't {1}be "samples"?

- -- 
Giacomo Pati
Otego AG, Switzerland - http://www.otego.com
Orixo, the XML business alliance - http://www.orixo.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFEmmXpLNdJvZjjVZARAla+AKCyhmOo7IcNO3nOTZzonBOalaQI0gCgt++X
E2DitKHZWw/myEd1Swc7UWo=
=hVTj
-----END PGP SIGNATURE-----

Mime
View raw message