@@ -0,0 +1,1234 @@
+package test.utils;%0D%0A%0D%0Aimport junit.framework.TestCase;%0D%0A%0D%0Aimport com.akjava.gwt.lib.client.experimental.ImageScaleRangeConverter;%0D%0A%0D%0Apublic class ImageScaleRangeConverterTest extends TestCase%7B%0D%0A%0D%0A%09public void testZero()%7B%0D%0A%09%09int v=0;%0D%0A%09%09double dv=getScale(v);%0D%0A%09%09assertEquals(v, scaleToRangeValue(dv));%0D%0A%09%7D%0D%0A%09%0D%0A%09%0D%0A%09%0D%0A%09public void testMinus()%7B%0D%0A%09%09int v=-99;%0D%0A%09%09double dv=getScale(v);%0D%0A%09%09assertEquals(v, scaleToRangeValue(dv));%0D%0A%09%7D%0D%0A%09%0D%0A%09public void testPlus()%7B%0D%0A%09%09int v=90;%0D%0A%09%09double dv=getScale(v);%0D%0A%09%09assertEquals(v, scaleToRangeValue(dv));%0D%0A%09%7D%0D%0A%09%0D%0A%09public void testMinus2()%7B%0D%0A%09%09int v=-10;%0D%0A%09%09double dv=getScale(v);%0D%0A%09%09assertEquals(v, scaleToRangeValue(dv));%0D%0A%09%7D%0D%0A%09%0D%0A%09public void testPlus2()%7B%0D%0A%09%09int v=10;%0D%0A%09%09double dv=getScale(v);%0D%0A%09%09assertEquals(v, scaleToRangeValue(dv));%0D%0A%09%7D%0D%0A%09%0D%0A%09public void testMinus3()%7B%0D%0A%09%09int v=-1;%0D%0A%09%09double dv=getScale(v);%0D%0A%09%09assertEquals(v, scaleToRangeValue(dv));%0D%0A%09%7D%0D%0A%09%0D%0A%09public void testPlus3()%7B%0D%0A%09%09int v=1;%0D%0A%09%09double dv=getScale(v);%0D%0A%09%09assertEquals(v, scaleToRangeValue(dv));%0D%0A%09%7D%0D%0A%09%0D%0A%09%0D%0A%09%0D%0A%09private double getScale(int v)%7B%0D%0Areturn new ImageScaleRangeConverter().convert(v);%0D%0A%09%7D%0D%0A%09%0D%0A%09private int scaleToRangeValue(double scale)%7B%0D%0A%09%09return new ImageScaleRangeConverter().reverse().convert(scale);%0D%0A%09%7D%0D%0A%7D%0D%0A

add test