package omino.utilities; import java.util.List; import junit.framework.TestCase; public class TestOmUtilities extends TestCase { public void testMinimalReturnValue() { int r1 = OmUtilities.getMinimalReturn(int.class); long r2 = OmUtilities.getMinimalReturn(long.class); Object r3 = OmUtilities.getMinimalReturn(Long.class); Object r4 = OmUtilities.getMinimalReturn(List.class); Object r5 = OmUtilities.getMinimalReturn(int.class); assertEquals("minimal int",0,r1); assertEquals("minimal long",0,r2); assertEquals("Long",null,r3); assertEquals("List",null,r4); assertEquals("int",0,r5); } }