ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r497394 - /ant/core/trunk/src/tests/antunit/taskdefs/xmlproperty-test.xml
Date Thu, 18 Jan 2007 10:56:43 GMT
Author: stevel
Date: Thu Jan 18 02:56:42 2007
New Revision: 497394

URL: http://svn.apache.org/viewvc?view=rev&rev=497394
Log:
fix the tests. the problem is some double expansion going on in antunit's assertions

Modified:
    ant/core/trunk/src/tests/antunit/taskdefs/xmlproperty-test.xml

Modified: ant/core/trunk/src/tests/antunit/taskdefs/xmlproperty-test.xml
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/taskdefs/xmlproperty-test.xml?view=diff&rev=497394&r1=497393&r2=497394
==============================================================================
--- ant/core/trunk/src/tests/antunit/taskdefs/xmlproperty-test.xml (original)
+++ ant/core/trunk/src/tests/antunit/taskdefs/xmlproperty-test.xml Thu Jan 18 02:56:42 2007
@@ -15,7 +15,7 @@
     </au:assertTrue>
   </target>
 
-  <target name="testInlineExpansion">
+  <target name="load">
     <xmlproperty
         file="xmlproperty.inline-expansion.xml"
         collapseAttributes="true"
@@ -28,16 +28,23 @@
     o            n        ${app.o}
     m            n        ${app.m}
     </echo>
-    <au:assertPropertyEquals name="app.p" value="${app.n}"/>
+  </target>
+
+  <target name="testInlineExpansion" depends="load">
+    <au:assertPropertyEquals name="app.m" value="n"/>
     <au:assertPropertyEquals name="app.n" value="n"/>
     <au:assertPropertyEquals name="app.o" value="n"/>
-    <au:assertPropertyEquals name="app.m" value="n"/>
-    <au:assertEquals actual="${app.n}" expected="n"/>
-    <au:assertEquals actual="${app.o}" expected="n"/>
-    <au:assertEquals actual="${app.m}" expected="n"/>
+    <au:assertPropertyEquals name="app.p" value="$${app.n}"/>
+    <property name="sequence" value="${app.m}${app.n}${app.o}${app.p}"/>
     <fail>
-      <not> 
-      </not>
+      xml attributes are not expanding correctly
+      expected: mnop=nnn$${app.n}
+      actual    mnop=${sequence}
+      <condition>
+        <not>
+          <equals arg1="${sequence}" arg2="nnn${app.n}"/>
+        </not>
+      </condition>
     </fail>
   </target>
 </project>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message