org.apache.sanselan.common.byteSources
Class ByteSourceImageTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.sanselan.SanselanTest
              extended by org.apache.sanselan.common.byteSources.ByteSourceTest
                  extended by org.apache.sanselan.common.byteSources.ByteSourceImageTest
All Implemented Interfaces:
junit.framework.Test, org.apache.sanselan.SanselanConstants

public class ByteSourceImageTest
extends ByteSourceTest


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.sanselan.SanselanTest
SanselanTest.ImageFilter
 
Field Summary
 
Fields inherited from interface org.apache.sanselan.SanselanConstants
BUFFERED_IMAGE_FACTORY, PARAM_KEY_COMPRESSION, PARAM_KEY_FILENAME, PARAM_KEY_FORMAT, PARAM_KEY_READ_THUMBNAILS, PARAM_KEY_STRICT, PARAM_KEY_VERBOSE, PARAM_KEY_XMP_XML
 
Constructor Summary
ByteSourceImageTest()
           
 
Method Summary
 void checkGetBufferedImage(java.io.File file, byte[] bytes)
           
 void checkGetICCProfileBytes(java.io.File imageFile, byte[] imageFileBytes)
           
 void checkGetImageInfo(java.io.File imageFile, byte[] imageFileBytes)
           
 void checkGetImageSize(java.io.File imageFile, byte[] imageFileBytes)
           
 void checkGuessFormat(java.io.File imageFile, byte[] imageFileBytes)
           
static junit.framework.Test suite()
           
 void test()
           
 
Methods inherited from class org.apache.sanselan.common.byteSources.ByteSourceTest
createTempFile, getTestByteArrays
 
Methods inherited from class org.apache.sanselan.SanselanTest
compareByteArrays, createTempFile, getTestImage, getTestImage, getTestImages, getTestImages, getTestImages, isInvalidPNGTestFile, isPhilHarveyTestImage, purgeMemory
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ByteSourceImageTest

public ByteSourceImageTest()
Method Detail

suite

public static junit.framework.Test suite()
Returns:
the suite of tests being tested

test

public void test()
          throws java.io.IOException,
                 org.apache.sanselan.ImageReadException,
                 java.lang.IllegalAccessException,
                 java.lang.IllegalArgumentException,
                 java.lang.reflect.InvocationTargetException
Throws:
java.io.IOException
org.apache.sanselan.ImageReadException
java.lang.IllegalAccessException
java.lang.IllegalArgumentException
java.lang.reflect.InvocationTargetException

checkGetBufferedImage

public void checkGetBufferedImage(java.io.File file,
                                  byte[] bytes)
                           throws java.io.IOException,
                                  org.apache.sanselan.ImageReadException
Throws:
java.io.IOException
org.apache.sanselan.ImageReadException

checkGetImageSize

public void checkGetImageSize(java.io.File imageFile,
                              byte[] imageFileBytes)
                       throws java.io.IOException,
                              org.apache.sanselan.ImageReadException
Throws:
java.io.IOException
org.apache.sanselan.ImageReadException

checkGuessFormat

public void checkGuessFormat(java.io.File imageFile,
                             byte[] imageFileBytes)
                      throws java.io.IOException,
                             org.apache.sanselan.ImageReadException
Throws:
java.io.IOException
org.apache.sanselan.ImageReadException

checkGetICCProfileBytes

public void checkGetICCProfileBytes(java.io.File imageFile,
                                    byte[] imageFileBytes)
                             throws java.io.IOException,
                                    org.apache.sanselan.ImageReadException
Throws:
java.io.IOException
org.apache.sanselan.ImageReadException

checkGetImageInfo

public void checkGetImageInfo(java.io.File imageFile,
                              byte[] imageFileBytes)
                       throws java.io.IOException,
                              org.apache.sanselan.ImageReadException,
                              java.lang.IllegalAccessException,
                              java.lang.IllegalArgumentException,
                              java.lang.reflect.InvocationTargetException
Throws:
java.io.IOException
org.apache.sanselan.ImageReadException
java.lang.IllegalAccessException
java.lang.IllegalArgumentException
java.lang.reflect.InvocationTargetException


Copyright © 2007-2009. All Rights Reserved.