3536373839404142434445
*/ public void testInt() { Translator t = new SmartTranslator(); Object result = t.translate(null, int.class, "-37", null); assertEquals(new Integer(-37), result); } public void testNullInput()
4445464748495051525354
public void testNullInput() { Translator t = new SmartTranslator(); assertNull(t.translate(null, int.class, null, null)); } public void testBlankInput() { Translator t = new SmartTranslator();
5152535455565758596061
public void testBlankInput() { Translator t = new SmartTranslator(); assertEquals("", t.translate(null, String.class, "", null)); } public void testDefault() { Translator t = new SmartTranslator("default=100");