ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: ant/src/testcases/org/apache/tools/ant TaskContainerTest.java
Date Mon, 28 Apr 2003 10:30:01 GMT
bodewig     2003/04/28 03:30:00

  Modified:    src/etc/testcases/core taskcontainer.xml
               src/testcases/org/apache/tools/ant TaskContainerTest.java
  Log:
  Demonstrate bug 19323
  
  Submitted by:	Jim Scarborough <jimes at hiwaay dot net>
  
  Revision  Changes    Path
  1.5       +10 -0     ant/src/etc/testcases/core/taskcontainer.xml
  
  Index: taskcontainer.xml
  ===================================================================
  RCS file: /home/cvs/ant/src/etc/testcases/core/taskcontainer.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- taskcontainer.xml	6 Apr 2003 09:30:56 -0000	1.4
  +++ taskcontainer.xml	28 Apr 2003 10:30:00 -0000	1.5
  @@ -31,6 +31,16 @@
       </sequential>
     </target>
   
  +  <target name="testCaseInsensitive">
  +    <taskdef name="Prattle" classname="org.apache.tools.ant.taskdefs.Echo"/>  
  +    <taskdef name="Seq"  
  +             classname="org.apache.tools.ant.taskdefs.Sequential"/>  
  +    <Prattle>hello</Prattle>  
  +    <Seq>  
  +      <Prattle> world</Prattle>  
  +    </Seq>  
  +  </target>  
  +
     <target name="cleanup">
       <delete dir="${build.dir}"/>
     </target>
  
  
  
  1.5       +8 -0      ant/src/testcases/org/apache/tools/ant/TaskContainerTest.java
  
  Index: TaskContainerTest.java
  ===================================================================
  RCS file: /home/cvs/ant/src/testcases/org/apache/tools/ant/TaskContainerTest.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- TaskContainerTest.java	6 Apr 2003 09:30:57 -0000	1.4
  +++ TaskContainerTest.java	28 Apr 2003 10:30:00 -0000	1.5
  @@ -86,4 +86,12 @@
                      getLog().indexOf("As nested task: it worked") > -1);
       }
   
  +    public void testCaseInsensitive() {
  +        executeTarget("testCaseInsensitive");
  +        assertTrue("works outside of container",
  +                   getLog().indexOf("hello ") > -1);
  +        assertTrue("works inside of container",
  +                   getLog().indexOf("world") > -1);
  +    }
  +
   }
  
  
  

Mime
View raw message