You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by st...@apache.org on 2002/02/01 08:23:33 UTC

cvs commit: jakarta-ant/src/testcases/org/apache/tools/ant/taskdefs LoadFileTest.java

stevel      02/01/31 23:23:33

  Modified:    src/testcases/org/apache/tools/ant/taskdefs
                        LoadFileTest.java
  Log:
  two new attrs to loadfile to make it more flexible in feeding other tasks
  
  Revision  Changes    Path
  1.5       +20 -5     jakarta-ant/src/testcases/org/apache/tools/ant/taskdefs/LoadFileTest.java
  
  Index: LoadFileTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/testcases/org/apache/tools/ant/taskdefs/LoadFileTest.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- LoadFileTest.java	30 Dec 2001 19:39:23 -0000	1.4
  +++ LoadFileTest.java	1 Feb 2002 07:23:33 -0000	1.5
  @@ -1,7 +1,7 @@
   /*
    *  The Apache Software License, Version 1.1
    *
  - *  Copyright (c) 2001 The Apache Software Foundation.  All rights
  + *  Copyright (c) 2001-2002 The Apache Software Foundation.  All rights
    *  reserved.
    *
    *  Redistribution and use in source and binary forms, with or without
  @@ -124,10 +124,7 @@
        */
       public void testFailOnError()
               throws BuildException {
  -        executeTarget("testFailOnError");
  -        if(project.getProperty("testFailOnError")!=null) {
  -            fail("property should not have been defined");
  -        }
  +        expectPropertyUnset("testFailOnError","testFailOnError");
       }
   
   
  @@ -152,9 +149,27 @@
           if(project.getProperty("testLoadAFileEnc")==null) {
               fail("file load failed");
           }
  +    }
   
  +        /**
  +     * A unit test for JUnit
  +     */
  +    public void testEvalProps()
  +            throws BuildException {
  +        executeTarget("testEvalProps");
  +        if(project.getProperty("testEvalProps").indexOf("rain")<0) {
  +            fail("property eval broken");
  +        }
       }
   
  +        /**
  +     * A unit test for JUnit
  +     */
  +    public void testOneLine()
  +            throws BuildException {
  +            expectPropertySet("testOneLine","testOneLine","1,2,3,4");
  +
  +    }
   }
   
   
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>