From 4b7f0604d8a5c49e4ead5856e27bb7a6c0864a8b Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Tue, 25 Jan 2011 09:43:27 +0000 Subject: [PATCH] verify a resource exists prior to validating its contents git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@1063192 13f79535-47bb-0310-9956-ffa450edef68 --- changes.xml | 6 ++++++ src/main/org/apache/ant/antunit/antlib.xml | 1 + 2 files changed, 7 insertions(+) diff --git a/changes.xml b/changes.xml index 8393c67..1ff1a59 100644 --- a/changes.xml +++ b/changes.xml @@ -38,6 +38,12 @@ + + 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. + New assertion assertResourceExists and assertResourceDoesntExist have been added. diff --git a/src/main/org/apache/ant/antunit/antlib.xml b/src/main/org/apache/ant/antunit/antlib.xml index fb167d1..932258c 100644 --- a/src/main/org/apache/ant/antunit/antlib.xml +++ b/src/main/org/apache/ant/antunit/antlib.xml @@ -175,6 +175,7 @@ under the License. +