|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
com.atlassian.core.util.thumbnail.ThumberTest
public class ThumberTest
This tests vary on the level of abstraction tested.
The reason is that I did not want to change public interface (method visibility) of Thumber class (in order to
keep clients compatible).
Thus sometimes higher level methods are tested and the test are not really unit -> e.g. testing
Thumber.retrieveOrCreateThumbNail(java.io.InputStream, String, java.io.File, int, int, long)
| Constructor Summary | |
|---|---|
ThumberTest()
|
|
| Method Summary | |
|---|---|
protected void |
setUp()
|
protected void |
tearDown()
|
void |
testAllCmykImagesShouldBeLoaded()
|
void |
testRetrieveOrCreateThumbnailBrokenGif()
|
void |
testRetrieveOrCreateThumbnailCMYKJpg()
|
void |
testRetrieveOrCreateThumbnailJpg()
|
void |
testRetrieveOrCreateThumbnailJpgAsStream()
|
void |
testRetrieveOrCreateThumbnailOpaqueGif()
|
void |
testRetrieveOrCreateThumbnailOpaqueGifAsStream()
|
void |
testRetrieveOrCreateThumbnailOpaquePng()
|
void |
testRetrieveOrCreateThumbnailOpaquePngAsStream()
|
void |
testRetrieveOrCreateThumbnailTransparentGif()
|
void |
testRetrieveOrCreateThumbnailTransparentGifAsStream()
|
void |
testRetrieveOrCreateThumbnailTransparentPng()
|
void |
testScaleImageForNonBufferedImage()
|
void |
testScaleImageForNonBufferedImageTransparentGif()
|
void |
testScaleImageUpscaling()
|
void |
testScaleImageWithInvalidParams()
|
void |
testUpscalingShouldReturnOriginalSize()
|
| Methods inherited from class junit.framework.TestCase |
|---|
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ThumberTest()
throws IOException
IOException| Method Detail |
|---|
protected void setUp()
throws Exception
setUp in class junit.framework.TestCaseException
protected void tearDown()
throws Exception
tearDown in class junit.framework.TestCaseException
public void testRetrieveOrCreateThumbnailTransparentPng()
throws IOException
IOException
public void testRetrieveOrCreateThumbnailBrokenGif()
throws IOException
IOException
public void testRetrieveOrCreateThumbnailOpaqueGif()
throws IOException
IOException
public void testRetrieveOrCreateThumbnailOpaqueGifAsStream()
throws IOException
IOException
public void testRetrieveOrCreateThumbnailOpaquePng()
throws IOException
IOException
public void testRetrieveOrCreateThumbnailOpaquePngAsStream()
throws IOException
IOException
public void testRetrieveOrCreateThumbnailJpg()
throws IOException
IOException
public void testRetrieveOrCreateThumbnailJpgAsStream()
throws IOException
IOException
public void testRetrieveOrCreateThumbnailTransparentGif()
throws IOException
IOException
public void testRetrieveOrCreateThumbnailTransparentGifAsStream()
throws IOException
IOException
public void testRetrieveOrCreateThumbnailCMYKJpg()
throws IOException
IOException
public void testAllCmykImagesShouldBeLoaded()
throws Exception
Exceptionpublic void testScaleImageForNonBufferedImage()
public void testScaleImageForNonBufferedImageTransparentGif()
public void testUpscalingShouldReturnOriginalSize()
throws IOException
IOException
public void testScaleImageUpscaling()
throws IOException
IOException
public void testScaleImageWithInvalidParams()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||