Code example for SimpleTypeConverter

0
public class ValueListSupportTests { 
    private ValueListSupport values; 
 
    @Before 
    public void init() { 
        values = new ValueListSupport(new SimpleTypeConverter(), true); 
    } 
 
    @Test 
    public void getFileItem() { 
        FileItem item = createMock(FileItem.class); 
 
        values.addValue(item); 
 
        assertSame(item, values.getFileItem()); 
    } 
 
    @Test 
    public void getFileItem_nonFileItem() { 
        values.addValue("str");