ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r209304 - in /ant/sandbox/antlibs/antunit/trunk: docs/assertions.html src/etc/testcases/assert.xml src/testcases/org/apache/ant/antunit/AssertTest.java
Date Tue, 05 Jul 2005 18:55:49 GMT
Author: bodewig
Date: Tue Jul  5 11:55:47 2005
New Revision: 209304

URL: http://svn.apache.org/viewcvs?rev=209304&view=rev
Log:
No classloader issue, just me being unable to read 'name of the data-type'.

Modified:
    ant/sandbox/antlibs/antunit/trunk/docs/assertions.html
    ant/sandbox/antlibs/antunit/trunk/src/etc/testcases/assert.xml
    ant/sandbox/antlibs/antunit/trunk/src/testcases/org/apache/ant/antunit/AssertTest.java

Modified: ant/sandbox/antlibs/antunit/trunk/docs/assertions.html
URL: http://svn.apache.org/viewcvs/ant/sandbox/antlibs/antunit/trunk/docs/assertions.html?rev=209304&r1=209303&r2=209304&view=diff
==============================================================================
--- ant/sandbox/antlibs/antunit/trunk/docs/assertions.html (original)
+++ ant/sandbox/antlibs/antunit/trunk/docs/assertions.html Tue Jul  5 11:55:47 2005
@@ -440,11 +440,11 @@
 
     <h3>Examples</h3>
 
-    <p>Make the build fail if Ant's current Executor is not of type
-    org.apache.tools.ant.helper.DefaultExecutor:</p>
+    <p>Make the build fail if the reference <em>classpath</em> has not
+    been set or doesn't point to a &lt;path&gt;.</p>
 
     <pre>
-      &lt;assertReferenceIsType name="ant.executor" type="org.apache.tools.ant.helper.DefaultExecutor"/&gt;
+      &lt;assertReferenceIsType refid="classpath" type="path"/>
     </pre>
 
     <h2><a name="assertLogContains">assertLogContains</a></h2>

Modified: ant/sandbox/antlibs/antunit/trunk/src/etc/testcases/assert.xml
URL: http://svn.apache.org/viewcvs/ant/sandbox/antlibs/antunit/trunk/src/etc/testcases/assert.xml?rev=209304&r1=209303&r2=209304&view=diff
==============================================================================
--- ant/sandbox/antlibs/antunit/trunk/src/etc/testcases/assert.xml (original)
+++ ant/sandbox/antlibs/antunit/trunk/src/etc/testcases/assert.xml Tue Jul  5 11:55:47 2005
@@ -167,15 +167,15 @@
 
   <target name="assertReferenceIsTypePass">
     <path id="foo3"/>
-    <au:assertReferenceIsType refid="foo3" type="org.apache.tools.ant.types.Path"/>
+    <au:assertReferenceIsType refid="foo3" type="path"/>
   </target>
 
   <target name="assertReferenceIsTypeFailNotSet">
-    <au:assertReferenceIsType refid="foo4" type="org.apache.tools.ant.types.Path"/>
+    <au:assertReferenceIsType refid="foo4" type="path"/>
   </target>
 
   <target name="assertReferenceIsTypeFailWrongType">
     <path id="foo5"/>
-    <au:assertReferenceIsType refid="foo5" type="org.apache.tools.ant.types.FileSet"/>
+    <au:assertReferenceIsType refid="foo5" type="fileset"/>
   </target>
 </project>

Modified: ant/sandbox/antlibs/antunit/trunk/src/testcases/org/apache/ant/antunit/AssertTest.java
URL: http://svn.apache.org/viewcvs/ant/sandbox/antlibs/antunit/trunk/src/testcases/org/apache/ant/antunit/AssertTest.java?rev=209304&r1=209303&r2=209304&view=diff
==============================================================================
--- ant/sandbox/antlibs/antunit/trunk/src/testcases/org/apache/ant/antunit/AssertTest.java
(original)
+++ ant/sandbox/antlibs/antunit/trunk/src/testcases/org/apache/ant/antunit/AssertTest.java
Tue Jul  5 11:55:47 2005
@@ -71,8 +71,7 @@
     public void testReferenceSetPass() {
         testPass("assertReferenceSetPass");
     }
-    // fails, probably due to classloader issues
-    public void NotestReferenceIsTypePass() {
+    public void testReferenceIsTypePass() {
         testPass("assertReferenceIsTypePass");
     }
 
@@ -133,7 +132,7 @@
     }
     public void testReferenceIsTypeFailWrongType() {
         testFail("assertReferenceIsTypeFailWrongType",
-                 "Expected reference 'foo5' to be a 'org.apache.tools.ant.types.FileSet'");
+                 "Expected reference 'foo5' to be a 'fileset'");
     }
 
     private void testPass(String target) {



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


Mime
View raw message