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 DirectoryScannerTest.java
Date Wed, 23 Jul 2003 07:30:14 GMT
bodewig     2003/07/23 00:30:14

  Modified:    src/testcases/org/apache/tools/ant DirectoryScannerTest.java
  Log:
  Some additional tests to increase confidence
  
  Revision  Changes    Path
  1.21      +21 -0     ant/src/testcases/org/apache/tools/ant/DirectoryScannerTest.java
  
  Index: DirectoryScannerTest.java
  ===================================================================
  RCS file: /home/cvs/ant/src/testcases/org/apache/tools/ant/DirectoryScannerTest.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- DirectoryScannerTest.java	23 Jul 2003 07:15:02 -0000	1.20
  +++ DirectoryScannerTest.java	23 Jul 2003 07:30:13 -0000	1.21
  @@ -236,6 +236,27 @@
                        new String[] {});
       }
   
  +    public void testParentDiffersInCaseScanningSensitive() {
  +        DirectoryScanner ds = new DirectoryScanner();
  +        ds.setBasedir(new File(getProject().getBaseDir(), "tmp"));
  +        ds.setIncludes(new String[] {"alpha/", "ALPHA/beta/"});
  +        ds.scan();
  +        compareFiles(ds, new String[] {"alpha/beta/beta.xml", 
  +                                       "alpha/beta/gamma/gamma.xml"},
  +                     new String[] {"alpha", "alpha/beta", "alpha/beta/gamma"});
  +    }
  +
  +    public void testParentDiffersInCaseScanningInsensitive() {
  +        DirectoryScanner ds = new DirectoryScanner();
  +        ds.setBasedir(new File(getProject().getBaseDir(), "tmp"));
  +        ds.setIncludes(new String[] {"alpha/", "ALPHA/beta/"});
  +        ds.setCaseSensitive(false);
  +        ds.scan();
  +        compareFiles(ds, new String[] {"alpha/beta/beta.xml", 
  +                                       "alpha/beta/gamma/gamma.xml"},
  +                     new String[] {"alpha", "alpha/beta", "alpha/beta/gamma"});
  +    }
  +
       /**
        * Test case for setFollowLinks() and associated funtionality.
        * Only supports test on linux, at the moment because Java has
  
  
  

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


Mime
View raw message