This commit is contained in:
Keith Donald
2009-03-31 15:44:25 +00:00
parent ea9df82d2a
commit 7f6fc4e82e
12 changed files with 66 additions and 63 deletions

View File

@@ -575,9 +575,8 @@ public class GenericConversionServiceTests extends TestCase {
}
public void testSuperTwoWayConverterConverterAdaption() {
// this fails at the moment
//service.addConverter(GenericConversionService.converterFor(String.class, FooEnum.class, new StringToEnum()));
//assertEquals(FooEnum.BAR, service.executeConversion("BAR", FooEnum.class));
service.addConverter(GenericConversionService.converterFor(String.class, FooEnum.class, new StringToEnum()));
assertEquals(FooEnum.BAR, service.executeConversion(value("BAR"), type(FooEnum.class)));
}
private TypedValue value(Object obj) {