Commit b3141d88 authored by Phillip Webb's avatar Phillip Webb

Use hexadecimal for string compare failure

Update `ImageBannerTests` to use `inHexacecimal()` to help with
failure logs.

See gh-18301
parent 2de7b3af
...@@ -184,7 +184,7 @@ class ImageBannerTests { ...@@ -184,7 +184,7 @@ class ImageBannerTests {
AnsiOutput.setEnabled(AnsiOutput.Enabled.NEVER); AnsiOutput.setEnabled(AnsiOutput.Enabled.NEVER);
String banner = printBanner("gradient.gif", "spring.banner.image.width=6", "spring.banner.image.margin=0", String banner = printBanner("gradient.gif", "spring.banner.image.width=6", "spring.banner.image.margin=0",
"spring.banner.image.pixelmode=block"); "spring.banner.image.pixelmode=block");
assertThat(banner).contains("\u2588\u2593\u2592\u2591 "); assertThat(banner).inHexadecimal().contains("\u2588\u2593\u2592\u2591 ");
} }
private int getBannerHeight(String banner) { private int getBannerHeight(String banner) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment