com.atlassian.core.util.thumbnail
Class DimensionsHelperTest

java.lang.Object
  extended by com.atlassian.core.util.thumbnail.DimensionsHelperTest

public class DimensionsHelperTest
extends Object


Field Summary
static int IMAGE_HEIGHT
           
static int IMAGE_WIDTH
           
 
Constructor Summary
DimensionsHelperTest()
           
 
Method Summary
 void setUp()
           
 void testDetermineScaleSize()
          Testing extremely wide and tall images clamp minimum width and height to 1, as per http://jira.atlassian.com/browse/JRA-20369
 void testGettingRightDimensionsInHappyPath()
           
 void testThrowsExceptionWhenCannotReadImage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IMAGE_HEIGHT

public static final int IMAGE_HEIGHT
See Also:
Constant Field Values

IMAGE_WIDTH

public static final int IMAGE_WIDTH
See Also:
Constant Field Values
Constructor Detail

DimensionsHelperTest

public DimensionsHelperTest()
Method Detail

setUp

public void setUp()
           throws Exception
Throws:
Exception

testGettingRightDimensionsInHappyPath

public void testGettingRightDimensionsInHappyPath()
                                           throws Exception
Throws:
Exception

testThrowsExceptionWhenCannotReadImage

public void testThrowsExceptionWhenCannotReadImage()
                                            throws Exception
Throws:
Exception

testDetermineScaleSize

public void testDetermineScaleSize()
                            throws Exception
Testing extremely wide and tall images clamp minimum width and height to 1, as per http://jira.atlassian.com/browse/JRA-20369

Throws:
Exception


Copyright © 2015 Atlassian. All rights reserved.