ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject cvs commit: ant/src/etc/testcases/types addtype.xml
Date Tue, 30 Dec 2003 11:37:57 GMT
peterreilly    2003/12/30 03:37:57

  Modified:    src/testcases/org/apache/tools/ant/types PathTest.java
               src/etc/testcases/types addtype.xml
  Log:
  Fix unit tests.
    - addtypetest used an unused invalid classpathref
    - PathTest used an invalid reference in testing attributes
  
  Revision  Changes    Path
  1.20      +2 -0      ant/src/testcases/org/apache/tools/ant/types/PathTest.java
  
  Index: PathTest.java
  ===================================================================
  RCS file: /home/cvs/ant/src/testcases/org/apache/tools/ant/types/PathTest.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- PathTest.java	16 Jul 2003 11:00:36 -0000	1.19
  +++ PathTest.java	30 Dec 2003 11:37:57 -0000	1.20
  @@ -439,6 +439,8 @@
                            be.getMessage());
           }
   
  +        Path another = new Path(project, "/a:/a");
  +        project.addReference("dummyref", another);
           p = new Path(project);
           p.setRefid(new Reference("dummyref"));
           try {
  
  
  
  1.4       +8 -8      ant/src/etc/testcases/types/addtype.xml
  
  Index: addtype.xml
  ===================================================================
  RCS file: /home/cvs/ant/src/etc/testcases/types/addtype.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- addtype.xml	14 Oct 2003 08:47:42 -0000	1.3
  +++ addtype.xml	30 Dec 2003 11:37:57 -0000	1.4
  @@ -46,28 +46,28 @@
       <typedef loaderref="nested.loader" classpathref="test-classes"
                name = "nested.a"
                classname="${nested.package}AddTypeTest$AImpl"/>
  -    <typedef loaderref="nested.loader" classpathref="test-classes"
  +    <typedef loaderref="nested.loader"
                name = "nested.b"
                classname="${nested.package}AddTypeTest$BImpl"/>
  -    <typedef loaderref="nested.loader" classpathref="test-classes"
  +    <typedef loaderref="nested.loader"
                name = "nested.c"
                classname="${nested.package}AddTypeTest$CImpl"/>
  -    <typedef loaderref="nested.loader" classpathref="test-classes"
  +    <typedef loaderref="nested.loader"
                name = "nested.ab"
                classname="${nested.package}AddTypeTest$ABImpl"/>
  -    <taskdef loaderref="nested.loader" classpathref="test-classes"
  +    <taskdef loaderref="nested.loader"
                name = "nested.container" 
                classname="${nested.package}AddTypeTest$NestedContainer"/>
  -    <taskdef loaderref="nested.loader" classpathref="nested.classes"
  +    <taskdef loaderref="nested.loader"
                name = "nested.condition.task" 
                classname="${nested.package}AddTypeTest$MyCondition"/>
  -    <typedef loaderref="nested.loader" classpathref="nested.classes"
  +    <typedef loaderref="nested.loader"
                name = "nested.condition.type" 
                classname="${nested.package}AddTypeTest$MyCondition"/>
  -    <typedef loaderref="nested.loader" classpathref="nested.classes"
  +    <typedef loaderref="nested.loader"
                name = "myaddconfigured" 
                classname="${nested.package}AddTypeTest$MyAddConfigured"/>
  -    <typedef loaderref="nested.loader" classpathref="nested.classes"
  +    <typedef loaderref="nested.loader"
                name = "myvalue" 
                classname="${nested.package}AddTypeTest$MyValue"/>
     </target>
  
  
  

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


Mime
View raw message