You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by to...@apache.org on 2004/10/05 02:08:21 UTC

cvs commit: ws-axis/java/test/wsdl/filegen FileGenTestCase.java

tomj        2004/10/04 17:08:21

  Modified:    java/test/wsdl/filegen FileGenTestCase.java
  Log:
  Check to make sure we can get the file list of
  a directory and fail the test if we can't.
  
  Revision  Changes    Path
  1.10      +5 -1      ws-axis/java/test/wsdl/filegen/FileGenTestCase.java
  
  Index: FileGenTestCase.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/test/wsdl/filegen/FileGenTestCase.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- FileGenTestCase.java	25 Feb 2004 14:03:03 -0000	1.9
  +++ FileGenTestCase.java	5 Oct 2004 00:08:21 -0000	1.10
  @@ -84,6 +84,9 @@
        */    
       protected String[] getPaths(File root, String parent) {
           File files[] = root.listFiles();
  +        if (files == null)
  +            fail("Unable to get a list of files from " + root.getPath());
  +
           Set filePaths = new HashSet();
           for(int i=0; i<files.length; i++) {
               if (files[i].isDirectory()) {
  @@ -125,7 +128,8 @@
           }
   
           if (shouldExist.size() > 0) {
  -            fail("The following files should exist in " + rootDir + 
                ", but do not:  " + shouldExist);
  +            fail("The following files should exist in " + rootDir + 
  +                ", but do not:  " + shouldExist);
           }
   
           if (shouldNotExist.size() > 0) {