diff --git a/changes.xml b/changes.xml
index c9e4a70..45cb0cd 100644
--- a/changes.xml
+++ b/changes.xml
@@ -48,6 +48,10 @@
Default XSLT stylesheets now properly escape XML in exception
stack traces.
+
+ assertPropertyContains was not checking the value of the property but
+ the name of the property.
+
diff --git a/src/etc/testcases/assert.xml b/src/etc/testcases/assert.xml
index adac596..60075cf 100644
--- a/src/etc/testcases/assert.xml
+++ b/src/etc/testcases/assert.xml
@@ -102,6 +102,16 @@ under the License.
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main/org/apache/ant/antunit/antlib.xml b/src/main/org/apache/ant/antunit/antlib.xml
index 7c8c154..c8edb02 100644
--- a/src/main/org/apache/ant/antunit/antlib.xml
+++ b/src/main/org/apache/ant/antunit/antlib.xml
@@ -104,7 +104,7 @@ under the License.
-
diff --git a/src/tests/junit/org/apache/ant/antunit/AssertTest.java b/src/tests/junit/org/apache/ant/antunit/AssertTest.java
index 3a78a62..5494cdd 100644
--- a/src/tests/junit/org/apache/ant/antunit/AssertTest.java
+++ b/src/tests/junit/org/apache/ant/antunit/AssertTest.java
@@ -101,6 +101,12 @@ public class AssertTest extends BuildFileTest {
public void testPropertyEqualsFail3() {
testFail("assertPropertyEqualsFail3", "Expected property 'foo' to have value 'BAR' but was 'bar'");
}
+ public void testPropertyContains() {
+ testPass("assertPropertyContains");
+ }
+ public void testPropertyContainsFail() {
+ testFail("assertPropertyContainsFail", "Expected property 'foo' to contain value 'foo' but was 'bar'");
+ }
public void testFileExistsFail() {
testFail("assertFileExistsFail",
"Expected file 'assert.txt' to exist");