# Apache AntUnit

## 1.5.0 unreleased

Allow the AntUnit task to use a different classloader when running the test by means of a nested classpath or a classpathrefid attribute.

Only works properly with Ant 1.10.13 or later. (add)
Add new assertNotEquals, assertPropertyNotSet, assertPropertyNotEquals, assertPropertyDoesntContain and assertReferenceIsNotSet assertions. (add)

## 1.4.1 2021-07-07

We didn't follow our own best practice and hard-coded the AntUnit URI inside the Antlib descriptor instead of using ant:current. (fix, 65315)

## 1.4 2018-06-25

The coordinates inside the Ivy file have been changed to match those of the POM. (update)
The br-replace template inside the XSLT stylesheets used by for reports could cause stack overflows or out-of-memory errors when applied to big outputs. (fix, 57341)
AntUnit now requires at least Ant 1.8.1 at runtime. (update)

## 1.3 2014-05-14

New assertion assertRefResourceExists, assertRefResourceDoesntExist, assertRefResourceContains, assertRefResourceDoesntContain, assertNestedResourceExists, assertNestedResourceDoesntExist have been added. These new assertions work for non-filesystem resources unlike their existing cousins of AntUnit 1.2. (add, 53383)
A new AntUnitListener named "logforwarder" can be attached to forward any log output from the project under test to the project running the AntUnit task immediately. (add, 43582)
LogCapturer can now optionally add (platform dependent) line breaks between log messages that it records. The log related assertions and the logcontent resource have a new attribute "mergeLines" that controls the line breaks, it defaults to "true" - i.e. no line breaks - to preserve backwards compatibility. (fix, 56470)

## 1.2 2011-08-16

assertResourceContains now first validates that the given resource actually exists using assertResourceExists - this may lead to a different error message than the ones generated with AntUnit 1.1. (update)
New assertion assertResourceExists and assertResourceDoesntExist have been added. (add)
The XSLT stylesheets now create HTML files instead of plain text for logs sent to System.err and System.out. You can always get back to your own reporting by providing custom stylesheets. (fix)
It is now possible to pass references from the build file containing the <antunit> task to the build files under test. (add, 49168)
Add experimental JUnit3 and JUnit4 adapters allowing to launch AntUnit script from JUnit runner. The API of that code is not fixed and may change in future releases. (add)
expectfailure report the original build exception chained when failing (update)
Default XSLT stylesheets now properly escape XML in exception stack traces. (fix)
assertPropertyContains was not checking the value of the property but the name of the property. (fix)
Add a fail task that makes a test case fail if no condition is provided or if the provided one is evaluated to false. (add)

## 1.1 2008-09-26

assertFileExists example wrong, should use @file instead of @name (fix, 42745)
Failure in tearDown doesn't result in failed test run (fix, 43466)
assertMatches' casesensitive attribute didn't default to true as documented (fix, 43639)
added a new assertDoesntMatch assertion (add, 43639)
added suiteSetUp and suiteTearDown targets (add, 43475)
plainlistener and xmllistener can now optionally contain the test's log output in their reports (add, 43604)
xmllistener will now log the properties of the project under test (add, 43614)
added new assertResourceContains and assertResourceDoesntContain assertion (add)