Changeset 6742


Ignore:
Timestamp:
07/27/10 20:18:59 (9 years ago)
Author:
melissa
Message:

More informative failure messages in sane used files test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/test-suite/src/loci/tests/testng/FormatReaderTest.java

    r6712 r6742  
    668668        IFormatReader r = 
    669669          config.noStitching() ? new ImageReader() : new FileStitcher(); 
     670 
    670671        for (int i=0; i<base.length && success; i++) { 
    671672          r.setId(base[i]); 
     673 
    672674          String[] comp = r.getUsedFiles(); 
    673675          if (comp.length != base.length) { 
    674676            success = false; 
    675             msg = base[i]; 
     677            msg = base[i] + " (file list length was " + comp.length + 
     678              "; expected " + base.length + ")"; 
    676679          } 
    677680          if (success) Arrays.sort(comp); 
     
    679682            if (!comp[j].equals(base[j])) { 
    680683              success = false; 
    681               msg = base[i]; 
     684              msg = base[i] + "(file @ " + j + " was '" + comp[j] + 
     685                "', expected '" + base[j] + "')"; 
    682686            } 
    683687          } 
     688          r.close(); 
    684689        } 
    685690      } 
Note: See TracChangeset for help on using the changeset viewer.