StringToBooleanConverter converter = new StringToBooleanConverter();
public void testNullConversion() {
- assertEquals(null, converter.convertToModel(null, null, null));
+ assertEquals(null, converter.convertToModel(null, Boolean.class, null));
}
public void testEmptyStringConversion() {
StringToDateConverter converter = new StringToDateConverter();
public void testNullConversion() {
- assertEquals(null, converter.convertToModel(null, null, null));
+ assertEquals(null, converter.convertToModel(null, Date.class, null));
}
public void testEmptyStringConversion() {
StringToDoubleConverter converter = new StringToDoubleConverter();
public void testNullConversion() {
- assertEquals(null, converter.convertToModel(null, null, null));
+ assertEquals(null, converter.convertToModel(null, Double.class, null));
}
public void testEmptyStringConversion() {
StringToFloatConverter converter = new StringToFloatConverter();
public void testNullConversion() {
- assertEquals(null, converter.convertToModel(null, null, null));
+ assertEquals(null, converter.convertToModel(null, Float.class, null));
}
public void testEmptyStringConversion() {
StringToIntegerConverter converter = new StringToIntegerConverter();
public void testNullConversion() {
- assertEquals(null, converter.convertToModel(null, null, null));
+ assertEquals(null, converter.convertToModel(null, Integer.class, null));
}
public void testEmptyStringConversion() {
StringToNumberConverter converter = new StringToNumberConverter();
public void testNullConversion() {
- assertEquals(null, converter.convertToModel(null, null, null));
+ assertEquals(null, converter.convertToModel(null, Number.class, null));
}
public void testEmptyStringConversion() {