Code example for DefaultFormattingConversionService

0
import org.springframework.format.support.DefaultFormattingConversionService;
 
@RunWith(Parameterized.class) 
public class NumericFilterTest { 
 
	private static final GenericConversionService genericConversionService = new DefaultFormattingConversionService();
 
	@Parameters 
	public static Collection<Object[]> types() {
		return Arrays.asList(new Object[][] { { "numeric" }, { "int" }, { "float" },
				{ "number" } }); 
	} 
 
	@Parameter
	public String type;
 
	@Test
	public void testNumericFilterLT() { 
		Map<String, Object> json = new HashMap<String, Object>();
		json.put("field", "aField");