Browse Source

updated test to reflect correct behavior

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2385 50f2f4bb-b051-0410-bef5-90022cba6387
pull/1/head
Keith Donald 16 years ago
parent
commit
fd45d264bd
  1. 3
      org.springframework.core/src/test/java/org/springframework/core/convert/support/DefaultConversionServiceTests.java

3
org.springframework.core/src/test/java/org/springframework/core/convert/support/DefaultConversionServiceTests.java

@ -25,6 +25,7 @@ import java.util.Locale; @@ -25,6 +25,7 @@ import java.util.Locale;
import org.junit.Test;
import org.springframework.core.convert.ConversionFailedException;
import org.springframework.core.convert.ConverterNotFoundException;
import org.springframework.core.convert.converter.Converter;
/**
@ -196,7 +197,7 @@ public class DefaultConversionServiceTests { @@ -196,7 +197,7 @@ public class DefaultConversionServiceTests {
assertEquals("123456789", conversionService.convert(new SSN("123456789"), String.class));
}
@Test(expected=ConversionFailedException.class)
@Test(expected=ConverterNotFoundException.class)
public void convertObjectToObjectNoValueOFMethodOrConstructor() {
DefaultConversionService conversionService = new DefaultConversionService();
conversionService.convert(new Long(3), SSN.class);

Loading…
Cancel
Save