org.xenbase.scraper.runner
Class ImageUtilsTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.xenbase.scraper.runner.ImageUtilsTest
All Implemented Interfaces:
junit.framework.Test

public class ImageUtilsTest
extends junit.framework.TestCase

Author:
Chris Jarabek (cjjarabe@ucalgary.ca)

Method Summary
static byte[] getBytesFromFile(java.io.File file)
           
 void test_TIF_PNG()
          Test case that runs through the image utilities functions with a test PNG and TIF file (see hardcoded path in code body).
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

test_TIF_PNG

public void test_TIF_PNG()
Test case that runs through the image utilities functions with a test PNG and TIF file (see hardcoded path in code body). No tests were performed on JPG, because exhaustive manual testing has been performed on JPG encoded images. *


getBytesFromFile

public static byte[] getBytesFromFile(java.io.File file)
                               throws java.io.IOException
Throws:
java.io.IOException