made ConversionExecutor internal; removed other unused operations from public SPI

This commit is contained in:
Keith Donald
2009-05-11 21:23:18 +00:00
parent bf7a947559
commit d7c90cff14
16 changed files with 109 additions and 142 deletions

View File

@@ -31,8 +31,7 @@ import java.util.Map;
import org.junit.Ignore;
import org.junit.Test;
import org.springframework.core.convert.ConversionExecutionException;
import org.springframework.core.convert.ConversionExecutor;
import org.springframework.core.convert.ConversionExecutorNotFoundException;
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.NumberToNumber;
@@ -84,9 +83,9 @@ public class GenericConversionServiceTests {
@Test
public void convertExecutorNotFound() {
try {
service.getConversionExecutor(String.class, type(Integer.class));
service.executeConversion("3", type(Integer.class));
fail("Should have thrown an exception");
} catch (ConversionExecutorNotFoundException e) {
} catch (ConverterNotFoundException e) {
}
}
@@ -161,9 +160,9 @@ public class GenericConversionServiceTests {
}
});
try {
ConversionExecutor executor = service.getConversionExecutor(String.class, type(Integer.class));
service.executeConversion("3", type(Integer.class));
fail("Should have failed");
} catch (ConversionExecutorNotFoundException e) {
} catch (ConverterNotFoundException e) {
}
}