DATACMNS-1096 - Replaced references to Spring's Converter to JDK 8's Function in domain package.
Switched to use Optional<Object> to make nullability explicit. Keep the original ….convert(…) method around as deprecated default method so that clients can be migrated gradually.
This commit is contained in:
@@ -218,7 +218,7 @@ public class ExampleSpecificationAccessorUnitTests {
|
||||
@Test // DATACMNS-810
|
||||
public void getValueTransformerForPathReturnsConfigurtedTransformerForPath() {
|
||||
|
||||
PropertyValueTransformer transformer = source -> source.toString();
|
||||
PropertyValueTransformer transformer = source -> source.map(Object::toString);
|
||||
|
||||
specification = ExampleMatcher.matching().//
|
||||
withTransformer("firstname", transformer);
|
||||
|
||||
Reference in New Issue
Block a user