org.opencms.loader
Class TestCmsImageScaler

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.opencms.loader.TestCmsImageScaler
All Implemented Interfaces:
junit.framework.Test

public class TestCmsImageScaler
extends junit.framework.TestCase

Tests the OpenCms image scaler.


Constructor Summary
TestCmsImageScaler()
           
 
Method Summary
 void testDownScaling()
          Tests the image downscaling option.
 void testScaleType5()
          Tests the image scaling type 5.
 void testScaleType5InImageTag()
          Tests the image scaling type 5 in the image tag (with cropping).
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestCmsImageScaler

public TestCmsImageScaler()
Method Detail

testDownScaling

public void testDownScaling()
                     throws Exception
Tests the image downscaling option.

Throws:
Exception - in case the test fails

testScaleType5

public void testScaleType5()
                    throws Exception
Tests the image scaling type 5.

Throws:
Exception - in case the test fails

testScaleType5InImageTag

public void testScaleType5InImageTag()
                              throws Exception
Tests the image scaling type 5 in the image tag (with cropping).

Throws:
Exception - in case the test fails