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. - - - - + + + + - - - - + + + + + + + + + + + + + + + +