From 7d90c2b1a092a723edb5edec1383e5475e6aafb4 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Fri, 22 Aug 2008 15:29:46 +0000 Subject: [PATCH] document assertResourceContains git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@688096 13f79535-47bb-0310-9956-ffa450edef68 --- docs/assertions.html | 38 ++++++++++++++++++++++ src/main/org/apache/ant/antunit/antlib.xml | 31 +++++++++++++----- 2 files changed, 60 insertions(+), 9 deletions(-) diff --git a/docs/assertions.html b/docs/assertions.html index acf66ec..3a391c4 100644 --- a/docs/assertions.html +++ b/docs/assertions.html @@ -633,6 +633,44 @@ +

assertResourceContains

+ +

Asserts that a resource's content includes a given string.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionRequired
resourceLocation of the resource to load.Yes
valueThe text to search for.Yes
casesensitive + Perform a case sensitive match. + Default is true. + No.
messageMessage for the exception if the condition + doesn't hold true. Defaults to "Expected resource + 'resource' to contain value 'value' but + was 'content of resource'".No.
+
diff --git a/src/main/org/apache/ant/antunit/antlib.xml b/src/main/org/apache/ant/antunit/antlib.xml index 0dfc15c..82d2fb5 100644 --- a/src/main/org/apache/ant/antunit/antlib.xml +++ b/src/main/org/apache/ant/antunit/antlib.xml @@ -132,16 +132,29 @@ under the License. - - - - + + + + - - - - + + + + + + + + + + + + + + + +