Open larsblumberg opened 10 years ago
Nice find.
This seems like a bug in FEST, not this library specifically. It's attempting to do that format twice without proper escaping. I'll have to test with normal assertions to see if this happens.
Thank you Jake
Assuming that a text view contains the '%' character, calling
will throw java.util.UnknownFormatConversionException if the assertion fails (expected text is not actual text).
This is due to AssertionError.failureIfErrorMessageIsOverriden() calling MessageFormatter.instance().format().
The solution would be to escape '%' characters in the description to be formatted.