moved test case where it belongs
This commit is contained in:
parent
c3044e122c
commit
48e1ed0a24
|
|
@ -713,15 +713,6 @@ public class DefaultConversionTests {
|
||||||
assertEquals(new Long(1), result.get(1L));
|
assertEquals(new Long(1), result.get(1L));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
public void genericConverterDelegatingBackToConversionServiceConverterNotFound() {
|
|
||||||
try {
|
|
||||||
conversionService.convert("1", Integer[].class);
|
|
||||||
} catch (ConversionFailedException e) {
|
|
||||||
assertTrue(e.getCause() instanceof ConverterNotFoundException);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public void testUnmodifiableListConversion() {
|
public void testUnmodifiableListConversion() {
|
||||||
|
|
|
||||||
|
|
@ -130,4 +130,15 @@ public class GenericConversionServiceTests {
|
||||||
assertEquals(3, three.intValue());
|
assertEquals(3, three.intValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void genericConverterDelegatingBackToConversionServiceConverterNotFound() {
|
||||||
|
try {
|
||||||
|
conversionService.addGenericConverter(new ObjectToArrayConverter(conversionService));
|
||||||
|
conversionService.convert("1", Integer[].class);
|
||||||
|
fail("Should hace failed");
|
||||||
|
} catch (ConversionFailedException e) {
|
||||||
|
assertTrue(e.getCause() instanceof ConverterNotFoundException);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue