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):
http://issues.apache.org/bugzilla/show_bug.cgi?id=28883
Which would allow AntUnit to have an additional assertion:
<target name="testTstampFormat">
<tstamp>
<format property="today" pattern="dd-MM-yyyy"/>
</tstamp>
<au:assertMatches string="${today}"
pattern="[0123]\d-[01]\d-[12]\d{3}"/>
</target>
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]