Class OptionalToFormattedString


  • public class OptionalToFormattedString
    extends Conversion<java.util.Optional,​FormattedString>
    This conversion is necessary to allow Optionals to be displayed correctly in test results. For actual value comparison, the value comparator will already handle Optional resolution, because for that job, non-present optionals must be handled in a special way.
    Author:
    Rene Schneider - initial API and implementation