Neither. I just use #AssertJ! 🤓
And yes, this is coming from a #JUnit maintainer. 😇
Awesome AssertJ: Use isEqualToNormalizingNewlines To Assert With Text Block
A blog by @mrhaki
A Java text block is an easy way to have a multiline string value. But there is a catch if we want to use a text block with the assertion method isEqualTo. Suppose you have written a piece of code that create a new string value where the line endings are defined using System.lineSeparator(). The string value would have the...
Was tun, wenn #JUnit nicht mehr reicht? Christopher Olbertz zeigt, wie #AssertJ für bessere Lesbarkeit sorgt, #ArchUnit Architekturverstöße erkennt & #Mockito Tests entkoppelt.
Jetzt Teststrategie modernisieren: https://javapro.io/de/testen-mit-java-die-vielfaeltige-welt-der-test-frameworks/
Du willst, dass dein Team systematisch testet, & das auch richtig? Christopher Olbertz zeigt dir die passenden Tools für verschiedene Testarten:
✔️ Unit-Tests, Architektur-Checks, Mocking komplexer Abhängigkeiten
Lese: https://javapro.io/de/testen-mit-java-die-vielfaeltige-welt-der-test-frameworks/
Hack.Commit.Push Switzerland is just one week away! 🇨🇭
This is a great opportunity to get involved in Open Source projects like #AssertJ, with direct guidance from the maintainers!
btw, if you run a user group/meetup and want me to present any of my talks (on Testable Architecture, Event Sourcing, etc.) to your group (remotely or in person in the SF Bay Area), let me know!
See my Ted Talks page: https://ted.dev/talks
Soft Assertions with #AssertJ