ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul King <>
Subject Re: [ANN] Apache AntUnit 1.0 Beta 1 Released
Date Sun, 24 Sep 2006 05:20:36 GMT
> The Ant Team is proud to announce the first Beta release of
> Apache AntUnit 1.0.

I added a patch to bug 28883 (regex condition for Ant):

Which would allow AntUnit to have an additional assertion:

 <target name="testTstampFormat">
     <format property="today" pattern="dd-MM-yyyy"/>
   <au:assertMatches string="${today}"

Useful for checking dates, urls, pathnames, passwords,
email addresses, globbing etc. I guess typically more for
an acceptance flavour of test than a strict unit test but
useful none the less.

It requires an extra condition in core Ant but if there
is no interest in that change I guess the condition could
be packaged up as part of AntUnit. I guess an assertDoesntMatch
would also be an easy extension.

Cheers, Paul. 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message