removed last ignore
This commit is contained in:
parent
737c66d729
commit
eb4a767f6b
|
|
@ -26,11 +26,10 @@ import java.util.LinkedList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.springframework.core.convert.ConversionFailedException;
|
import org.springframework.core.convert.ConversionFailedException;
|
||||||
import org.springframework.core.convert.TypeDescriptor;
|
|
||||||
import org.springframework.core.convert.ConverterNotFoundException;
|
import org.springframework.core.convert.ConverterNotFoundException;
|
||||||
|
import org.springframework.core.convert.TypeDescriptor;
|
||||||
import org.springframework.core.convert.converter.Converter;
|
import org.springframework.core.convert.converter.Converter;
|
||||||
|
|
||||||
public class GenericTypeConverterTests {
|
public class GenericTypeConverterTests {
|
||||||
|
|
@ -114,22 +113,6 @@ public class GenericTypeConverterTests {
|
||||||
assertEquals(new Integer(3), result);
|
assertEquals(new Integer(3), result);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
@Ignore
|
|
||||||
public void convertNoSuperTargetType() {
|
|
||||||
converter.add(new Converter<CharSequence, Number>() {
|
|
||||||
public Integer convert(CharSequence source) throws Exception {
|
|
||||||
return Integer.valueOf(source.toString());
|
|
||||||
}
|
|
||||||
});
|
|
||||||
try {
|
|
||||||
converter.convert("3", Integer.class);
|
|
||||||
fail("Should have failed");
|
|
||||||
} catch (ConverterNotFoundException e) {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void convertObjectToPrimitive() {
|
public void convertObjectToPrimitive() {
|
||||||
converter.add(new StringToInteger());
|
converter.add(new StringToInteger());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue