fixed stack overflow bug

This commit is contained in:
Keith Donald
2008-07-14 23:08:53 +00:00
parent 8352323695
commit 46db6e9dc5
2 changed files with 12 additions and 16 deletions

View File

@@ -39,17 +39,10 @@ import org.springframework.binding.format.DefaultNumberFormatFactory;
* @author Keith Donald
*/
public class DefaultConversionServiceTests extends TestCase {
public void testConvertCompatibleTypes() {
DefaultConversionService service = new DefaultConversionService();
List lst = new ArrayList();
assertSame(lst, service.getConversionExecutor(ArrayList.class, List.class).execute(lst));
try {
service.getConversionExecutor(List.class, ArrayList.class);
fail();
} catch (ConversionExecutorNotFoundException e) {
// expected
}
}
public void testOverrideConverter() {