Update to converter test
@@ -348,7 +348,6 @@ public class ConverterTest {
public void testExceptionDefaultValue() {
assertEquals(42, (int) converter.convert("haha").defaultValue(42).to(int.class));
assertEquals(999, (int) converter.convert("haha").defaultValue(999).to(int.class));
- assertNull(converter.convert("haha").defaultValue(null).to(int.class));
try {
converter.convert("haha").to(int.class);
fail("Should have thrown an exception");
@@ -539,6 +538,7 @@ public class ConverterTest {
public void testDefaultValue() {
long l = converter.convert(null).defaultValue("12").to(Long.class);
assertEquals(12L, l);
+ assertNull(converter.convert("haha").defaultValue(null).to(Integer.class));
}
@Test
