@Test public void testGetDefaultTypeConverterEmptyList() throws Exception { TypeConverter typeConverter = converterHelper.getDefaultTypeConverter(Object.class, Date.class); assertThat(typeConverter).isInstanceOf(NoConversionTypeConverter.class); }
TypeConverter getDefaultTypeConverter(Type toField, Type domainField) { for (TypeConverter typeConverter : typeConvertersInOrder) { if (typeConverter.canConvert(toField, domainField)) { return typeConverter; } } return new NoConversionTypeConverter(); }
ConverterHelper { TypeConverter getDefaultTypeConverter(Type toField, Type domainField) { for (TypeConverter typeConverter : typeConvertersInOrder) { if (typeConverter.canConvert(toField, domainField)) { return typeConverter; } } return new NoConversionTypeConverter(); } }
ConverterHelper { TypeConverter getDefaultTypeConverter(Type toField, Type domainField) { for (TypeConverter typeConverter : typeConvertersInOrder) { if (typeConverter.canConvert(toField, domainField)) { return typeConverter; } } return new NoConversionTypeConverter(); }  }
ConverterHelper { TypeConverter getDefaultTypeConverter(Type toField, Type domainField) { for (TypeConverter typeConverter : typeConvertersInOrder) { if (typeConverter.canConvert(toField, domainField)) { return typeConverter; } } return new NoConversionTypeConverter(); }  ToConverter getToConverter(Class toClass, Class domainClass); }
ConverterHelper { TypeConverter getDefaultTypeConverter(Type toField, Type domainField) { for (TypeConverter typeConverter : typeConvertersInOrder) { if (typeConverter.canConvert(toField, domainField)) { return typeConverter; } } return new NoConversionTypeConverter(); }  ToConverter getToConverter(Class toClass, Class domainClass);  }