ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r601400 - in /ant/antlibs/antunit/trunk: changes.xml src/etc/testcases/assert.xml src/tests/junit/org/apache/ant/antunit/AssertTest.java
Date Wed, 05 Dec 2007 16:35:11 GMT
Author: bodewig
Date: Wed Dec  5 08:35:11 2007
New Revision: 601400

URL: http://svn.apache.org/viewvc?rev=601400&view=rev
Log:
test for issue 43639

Modified:
    ant/antlibs/antunit/trunk/changes.xml
    ant/antlibs/antunit/trunk/src/etc/testcases/assert.xml
    ant/antlibs/antunit/trunk/src/tests/junit/org/apache/ant/antunit/AssertTest.java

Modified: ant/antlibs/antunit/trunk/changes.xml
URL: http://svn.apache.org/viewvc/ant/antlibs/antunit/trunk/changes.xml?rev=601400&r1=601399&r2=601400&view=diff
==============================================================================
--- ant/antlibs/antunit/trunk/changes.xml (original)
+++ ant/antlibs/antunit/trunk/changes.xml Wed Dec  5 08:35:11 2007
@@ -28,6 +28,10 @@
     <action type="fix" issue="43466">
       Failure in tearDown doesn't result in failed test run
     </action>
+    <action type="fix" issue="43639">
+      assertMatches' casesensitive attribute didn't default to true as
+      documented
+    </action>
   </release>
 
-</document>
\ No newline at end of file
+</document>

Modified: ant/antlibs/antunit/trunk/src/etc/testcases/assert.xml
URL: http://svn.apache.org/viewvc/ant/antlibs/antunit/trunk/src/etc/testcases/assert.xml?rev=601400&r1=601399&r2=601400&view=diff
==============================================================================
--- ant/antlibs/antunit/trunk/src/etc/testcases/assert.xml (original)
+++ ant/antlibs/antunit/trunk/src/etc/testcases/assert.xml Wed Dec  5 08:35:11 2007
@@ -190,4 +190,11 @@
                       pattern="abc"
                       casesensitive="false"/>
   </target>
+
+  <target name="assertMatchesDefaultCaseSensitivity">
+    <au:expectfailure>
+      <au:assertMatches string="this is AbC"
+                        pattern="abc"/>
+    </au:expectfailure>
+  </target>
 </project>

Modified: ant/antlibs/antunit/trunk/src/tests/junit/org/apache/ant/antunit/AssertTest.java
URL: http://svn.apache.org/viewvc/ant/antlibs/antunit/trunk/src/tests/junit/org/apache/ant/antunit/AssertTest.java?rev=601400&r1=601399&r2=601400&view=diff
==============================================================================
--- ant/antlibs/antunit/trunk/src/tests/junit/org/apache/ant/antunit/AssertTest.java (original)
+++ ant/antlibs/antunit/trunk/src/tests/junit/org/apache/ant/antunit/AssertTest.java Wed Dec
 5 08:35:11 2007
@@ -141,6 +141,10 @@
         executeTarget("assertMatches");
     }
 
+    public void testMatchesDefaultCaseSensitivity() {
+        executeTarget("assertMatchesDefaultCaseSensitivity");
+    }
+
     private void testPass(String target) {
         executeTarget(target);
     }



Mime
View raw message