@Test public void testGetConverterInt() { when(fieldDefinition.getStandaloneClassName()).thenReturn("int"); Converter converter = fieldRenderer.getConverter(); assertNotNull(converter); assertThat(converter, instanceOf(IntegerToDoubleConverter.class)); }
@Override public Converter getConverter() { if (field.getStandaloneClassName() == Integer.class.getName() || field.getStandaloneClassName() == "int") { return new IntegerToDoubleConverter(); } return null; }
SliderFieldRenderer extends FieldRenderer<SliderBaseDefinition, SliderFormGroup> implements RequiresValueConverter { @Override public Converter getConverter() { if (field.getStandaloneClassName() == Integer.class.getName() || field.getStandaloneClassName() == "int") { return new IntegerToDoubleConverter(); } return null; } }
SliderFieldRenderer extends FieldRenderer<SliderBaseDefinition, SliderFormGroup> implements RequiresValueConverter { @Override public Converter getConverter() { if (field.getStandaloneClassName() == Integer.class.getName() || field.getStandaloneClassName() == "int") { return new IntegerToDoubleConverter(); } return null; }  }
SliderFieldRenderer extends FieldRenderer<SliderBaseDefinition, SliderFormGroup> implements RequiresValueConverter { @Override public Converter getConverter() { if (field.getStandaloneClassName() == Integer.class.getName() || field.getStandaloneClassName() == "int") { return new IntegerToDoubleConverter(); } return null; }  @Override String getName(); @Override Converter getConverter(); }
SliderFieldRenderer extends FieldRenderer<SliderBaseDefinition, SliderFormGroup> implements RequiresValueConverter { @Override public Converter getConverter() { if (field.getStandaloneClassName() == Integer.class.getName() || field.getStandaloneClassName() == "int") { return new IntegerToDoubleConverter(); } return null; }  @Override String getName(); @Override Converter getConverter();  }