ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: jakarta-ant/src/testcases/org/apache/tools/ant/taskdefs TaskdefTest.java
Date Fri, 14 Dec 2001 07:29:43 GMT
bodewig     01/12/13 23:29:43

  Modified:    src/etc/testcases/taskdefs taskdef.xml
               src/testcases/org/apache/tools/ant/taskdefs TaskdefTest.java
  Log:
  Add a testcase that demonstrates why FOP's build fails right now.
  
  Revision  Changes    Path
  1.8       +8 -0      jakarta-ant/src/etc/testcases/taskdefs/taskdef.xml
  
  Index: taskdef.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/etc/testcases/taskdefs/taskdef.xml,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- taskdef.xml	2001/11/09 15:48:11	1.7
  +++ taskdef.xml	2001/12/14 07:29:43	1.8
  @@ -62,4 +62,12 @@
       </global>
     </target>
   
  +  <target name="testOverride">
  +    <taskdef name="copy" classname="org.apache.tools.ant.taskdefs.Echo" />
  +    <copy>In target</copy>
  +    <sequential>
  +      <copy>In TaskContainer</copy>
  +    </sequential>
  +  </target>
  +
   </project>
  
  
  
  1.8       +11 -0     jakarta-ant/src/testcases/org/apache/tools/ant/taskdefs/TaskdefTest.java
  
  Index: TaskdefTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/testcases/org/apache/tools/ant/taskdefs/TaskdefTest.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- TaskdefTest.java	2001/11/14 12:25:30	1.7
  +++ TaskdefTest.java	2001/12/14 07:29:43	1.8
  @@ -105,4 +105,15 @@
       public void testGlobal() {
           expectLog("testGlobal", "worked");
       }
  +
  +    public void testOverride() {
  +        executeTarget("testOverride");
  +        String log = getLog();
  +        assertTrue("override warning sent", 
  +                   log.indexOf("Trying to override old definition of task copy") > -1);
  +        assertTrue("task inside target worked", 
  +                   log.indexOf("In target") > -1);
  +        assertTrue("task inside target worked", 
  +                   log.indexOf("In TaskContainer") > -1);
  +    }
   }
  
  
  

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


Mime
View raw message