@Test public void default_translator_property_type_is_null() { ComponentResources resources = mockComponentResources(); FieldTranslatorSource source = newMock(FieldTranslatorSource.class); train_createDefaultTranslator(source, resources, "object", null); replay(); ComponentDefaultProvider provider = new ComponentDefaultProviderImpl(null, null, null, source, null); assertNull(provider.defaultTranslator("object", resources)); verify(); }
public FieldTranslator defaultTranslator(String parameterName, ComponentResources resources) { return fieldTranslatorSource.createDefaultTranslator(resources, parameterName); }
ComponentDefaultProviderImpl implements ComponentDefaultProvider { public FieldTranslator defaultTranslator(String parameterName, ComponentResources resources) { return fieldTranslatorSource.createDefaultTranslator(resources, parameterName); } }
ComponentDefaultProviderImpl implements ComponentDefaultProvider { public FieldTranslator defaultTranslator(String parameterName, ComponentResources resources) { return fieldTranslatorSource.createDefaultTranslator(resources, parameterName); } ComponentDefaultProviderImpl(PropertyAccess propertyAccess, BindingSource bindingSource,
                                        ValueEncoderSource valueEncoderSource,
                                        FieldTranslatorSource fieldTranslatorSource,
                                        FieldValidatorDefaultSource fieldValidatorDefaultSource); }
ComponentDefaultProviderImpl implements ComponentDefaultProvider { public FieldTranslator defaultTranslator(String parameterName, ComponentResources resources) { return fieldTranslatorSource.createDefaultTranslator(resources, parameterName); } ComponentDefaultProviderImpl(PropertyAccess propertyAccess, BindingSource bindingSource,
                                        ValueEncoderSource valueEncoderSource,
                                        FieldTranslatorSource fieldTranslatorSource,
                                        FieldValidatorDefaultSource fieldValidatorDefaultSource); String defaultLabel(ComponentResources resources); Binding defaultBinding(String parameterName, ComponentResources resources); @SuppressWarnings({ "unchecked" }) ValueEncoder defaultValueEncoder(String parameterName, ComponentResources resources); FieldTranslator defaultTranslator(String parameterName, ComponentResources resources); Binding defaultTranslatorBinding(final String parameterName, final ComponentResources resources); FieldValidator defaultValidator(String parameterName, ComponentResources resources); Binding defaultValidatorBinding(final String parameterName, final ComponentResources resources); }
ComponentDefaultProviderImpl implements ComponentDefaultProvider { public FieldTranslator defaultTranslator(String parameterName, ComponentResources resources) { return fieldTranslatorSource.createDefaultTranslator(resources, parameterName); } ComponentDefaultProviderImpl(PropertyAccess propertyAccess, BindingSource bindingSource,
                                        ValueEncoderSource valueEncoderSource,
                                        FieldTranslatorSource fieldTranslatorSource,
                                        FieldValidatorDefaultSource fieldValidatorDefaultSource); String defaultLabel(ComponentResources resources); Binding defaultBinding(String parameterName, ComponentResources resources); @SuppressWarnings({ "unchecked" }) ValueEncoder defaultValueEncoder(String parameterName, ComponentResources resources); FieldTranslator defaultTranslator(String parameterName, ComponentResources resources); Binding defaultTranslatorBinding(final String parameterName, final ComponentResources resources); FieldValidator defaultValidator(String parameterName, ComponentResources resources); Binding defaultValidatorBinding(final String parameterName, final ComponentResources resources);  }