mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-27 01:19:02 +00:00
added support for null conversion point type
This commit is contained in:
+11
@@ -80,7 +80,18 @@ public class GenericTypeConverterTests {
|
||||
public void convertNull() {
|
||||
assertNull(converter.convert(null, Integer.class));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void convertNullTargetClass() {
|
||||
assertEquals("3", converter.convert("3", (Class<?>)null));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void convertNullConversionPointType() {
|
||||
assertEquals("3", converter.convert("3", ConversionPoint.NULL));
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void convertWrongTypeArgument() {
|
||||
converter.addConverter(new StringToInteger());
|
||||
|
||||
Reference in New Issue
Block a user