Changeset 6283


Ignore:
Timestamp:
05/11/10 17:25:50 (10 years ago)
Author:
bdezonia
Message:

minor changes. some more code in color tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/loci-plugins/test/loci/plugins/in/ImporterTest.java

    r6282 r6283  
    66 
    77import static org.junit.Assert.assertEquals;  
     8import static org.junit.Assert.assertArrayEquals;  
    89import static org.junit.Assert.assertNotNull;  
    910import static org.junit.Assert.assertTrue;  
     
    875876    // TODO - test histogram values 
    876877 
    877     // TODO - test that image data unchanged from baseImage 
     878    // test that image data unchanged by autoscale 
     879     
     880    ImageStack st1 = baseImage.getStack(); 
     881    ImageStack st2 = imp.getStack(); 
     882     
     883    int st1Size = st1.getSize(); 
     884    assertEquals(st1Size,st2.getSize()); 
     885    for (int i = 0; i < st1Size; i++) 
     886      assertEquals(st1.getProcessor(i+1).getPixels(), st2.getProcessor(i+1).getPixels()); 
     887      // TODO - might need assertArrayEquals() and cast the returned pixels to the appropriate array type. 
     888      //    what is the file type for fakefiles when not specified? byte or int? 
    878889     
    879890    fail("to be implemented"); 
Note: See TracChangeset for help on using the changeset viewer.