Interface Stringifier<T>
- Type Parameters:
T
- The type of object this stringifier handles
- All Superinterfaces:
BiFunction<BeanConverter,
T, String>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Stringifiers provide custom string conversion logic for specific object types within the
Bean-Centric Testing framework. They enable precise control over how objects are displayed
in test assertions and error messages, going beyond simple toString()
calls.
Usage Examples:
Registration:
Best Practices:
- Use the converter parameter for recursive conversion of nested objects
- Keep output concise but informative for test readability
- Handle edge cases gracefully (empty collections, special values)
- Consider test context - focus on properties relevant to testing
-
Method Summary
Methods inherited from interface java.util.function.BiFunction
andThen, apply