Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertj3 (SNAPSHOT) throws UnknownFormatConversionException #205

Closed
Zegveld opened this issue Nov 11, 2020 · 1 comment
Closed

Assertj3 (SNAPSHOT) throws UnknownFormatConversionException #205

Zegveld opened this issue Nov 11, 2020 · 1 comment

Comments

@Zegveld
Copy link
Contributor

Zegveld commented Nov 11, 2020

If you use files that contains a space then it gets replaced by %20, which ends up in the message. Assertj then tries to format this and throws an java.util.UnknownFormatConversionException because %20 -> Conversion = '2' is unknown.

by duplicating the '%' signs after formatting it in the CompareAssert class this error goes away and the failure becomes as expected.

Pull request incoming to fix this issue.

Zegveld added a commit to rigd-loxia/xmlunit that referenced this issue Nov 11, 2020
bodewig added a commit that referenced this issue Nov 11, 2020
#205: escape '%'-signs for further handling in assertj.
@bodewig
Copy link
Member

bodewig commented Nov 11, 2020

closed by #206

@bodewig bodewig closed this as completed Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants