List of usage examples for org.springframework.format.support FormattingConversionService addConverter
@Override public void addConverter(Converter<?, ?> converter)
From source file:com.crossover.trial.weather.endpoint.RestWeatherQueryEndpointTest.java
@Before public void setup() { FormattingConversionService converter = new FormattingConversionService(); converter.addConverter(new DataPointTypeConverter()); converter.addConverter(new IATASpringConverter()); mockMvc = MockMvcBuilders.standaloneSetup(queryEndpoint, collectorEndpoint).setConversionService(converter) .build();/*from w ww. j a va2 s. co m*/ }
From source file:com.crossover.trial.weather.endpoint.RestWeatherCollectorEndpointTest.java
@Before public void setup() { FormattingConversionService converter = new FormattingConversionService(); converter.addConverter(new DataPointTypeConverter()); converter.addConverter(new IATASpringConverter()); mockMvc = MockMvcBuilders.standaloneSetup(endpoint).setConversionService(converter).build(); }