Neither. I just use #AssertJ! 🤓

And yes, this is coming from a #JUnit maintainer. 😇

Excited for #JCON EUROPE 2026? See Tim te Beek at #JCON2026 in Cologne talking about 'Better Assertions with #AssertJ'

Not all testing #libraries are equal. Sure they all run your #tests, but what happens when they fail? “Expected ‘true’, …

🎟️ 2026.europe.jcon.one/tickets
Free for #JUG members

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...

#dev #softwaredevelopment #Java #Testing #AssertJ

https://jdriven.com/blog/2026/02/Awesome-AssertJ-Use-isEqualToNormalizingNewlines-To-Assert-With-Text-Block/

Awesome AssertJ: Use isEqualToNormalizingNewlines To Assert With Text Block

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 tha

JDriven Blog
Write assertions with #AssertJ for multiline string values by normalizing new lines: https://blog.mrhaki.com/2026/01/awesome-assertj-use-isequaltonormalizin.html
Awesome AssertJ: Use isEqualToNormalizingNewlines To Assert With Text Block

A blog about Groovy, Java, Clojure, Asciidoctor, Gradle and other cool developer subjects.

Messages from mrhaki

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/

#CleanCode #JAVAPRO #unittesting #JAVAPRO

Instead of buying more stuff that I don’t really need, I’m sponsoring open source #Java projects that I rely on, starting with #JUnit and #AssertJ (via core maintainers Joel and Stefano).

If I was a big company using Java, I’d be embarrassed at not sponsoring these projects.

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/

#JUnit #Mockito #AssertJ #ArchUnit

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!

https://switzerland2025.hack-commit-pu.sh/

hack-commit-push · One Day to Contribute to Open Source

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

#Java #EventSourcing #JUnit #AssertJ

My Presentations | Ted M. Young

Articles, Videos, Training, and Coaching for Java Developers

Ted M. Young
Soft Assertions with AssertJ | Baeldung

Explore soft assertions and the motivation for using them.

Baeldung