AssertJ
@assertj.github.io
📤 453
📥 4
📝 29
Fluent testing assertions for Java and the JVM
pinned post!
📢 AssertJ 3.27.7 has been released! This fixes CVE-2026-24400 🔒 Happy assertions!
github.com/assertj/asse...
loading . . .
Release v3.27.7 · assertj/assertj
🔒 Security Core Fix XXE vulnerability in isXmlEqualTo assertion (CVE-2026-24400) See GHSA-rqfh-9r24-8c9r for details; many thanks to @wxt201 and @Song-Li for responsibly reporting it! 🚫 Deprec...
https://github.com/assertj/assertj/releases/tag/assertj-build-3.27.7
6 days ago
0
8
4
📢 AssertJ 3.27.7 has been released! This fixes CVE-2026-24400 🔒 Happy assertions!
github.com/assertj/asse...
loading . . .
Release v3.27.7 · assertj/assertj
🔒 Security Core Fix XXE vulnerability in isXmlEqualTo assertion (CVE-2026-24400) See GHSA-rqfh-9r24-8c9r for details; many thanks to @wxt201 and @Song-Li for responsibly reporting it! 🚫 Deprec...
https://github.com/assertj/assertj/releases/tag/assertj-build-3.27.7
6 days ago
0
8
4
reposted by
AssertJ
Simon Martinelli
17 days ago
🚀 New update: AssertJ support in Testcontainers Mailpit I just added AssertJ assertions to my Testcontainers Mailpit project. You can now write fluent assertions instead of low-level checks. 🔗 GitHub:
github.com/martinellich...
Feedback is welcome 👍
loading . . .
GitHub - martinellich/testcontainers-mailpit
Contribute to martinellich/testcontainers-mailpit development by creating an account on GitHub.
https://github.com/martinellich/testcontainers-mailpit
0
6
2
reposted by
AssertJ
Mike Møller Nielsen
about 1 month ago
This video is still relevant: “AssertJ — Use It Now!” 🚀 If you write Java tests, this one’s for you. Learn how AssertJ can make your assertions cleaner, clearer, and more powerful. Watch now:
youtu.be/qn4AMKTPpg8
#Java
#Testing
#AssertJ
#CleanCode
#DevTips
loading . . .
AssertJ use it now
YouTube video by Mike Møller Nielsen
https://youtu.be/qn4AMKTPpg8
0
8
5
reposted by
AssertJ
🤔 Who said that AssertJ 3 is in maintenance mode? 📢 We're planning an exceptional 3.28 release – let us know what you'd like to see in there! 👇
github.com/orgs/assertj...
loading . . .
Backport Scope for AssertJ 3.28.0 · assertj · Discussion #4018
We recently talked about how version 4 still needs a bit more work and probably won't be ready until at least the first half of 2026. Releasing a new major version is a rare opportunity for us: we ...
https://github.com/orgs/assertj/discussions/4018
2 months ago
0
16
9
reposted by
AssertJ
OpenRewrite by Moderne
about 2 months ago
#OpenRewrite
v8.68.1 is out! 🛬 🌱 Spring Boot 4.0: additional properties & dependencies 🍃 Migrate Spring Retry to Resilience 🧪 Hamcrest to AssertJ & JMockit to Mockito fixes 🟢 Node 22/24 upgrade recipes: fs, zlib, crypto & more 🤠 Jackson v3: migrate modules & feature flags
github.com/openrewrite/...
loading . . .
Release 3.20.0 · openrewrite/rewrite-recipe-bom
What's Changed Incorporates the latest versions of OpenRewrite (v8.68.1), the rewrite-gradle-plugin (v7.22.0), and the rewrite-maven-plugin (v6.25.0) to improve code parsing accuracy and recipe ex...
https://github.com/openrewrite/rewrite-recipe-bom/releases/tag/v3.20.0
0
9
3
reposted by
AssertJ
Ted M. Young (he/him) aka @JitterTed
2 months ago
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.
1
23
4
reposted by
AssertJ
Stefano Cordio
2 months ago
Many thanks to you,
@mcpringle.bsky.social
, and Alexandra, for the amazing organization! 🙏 So many new contributors to
@assertj.github.io
in a single day!
github.com/hack-commit-...
loading . . .
Add AssertJ contributions by scordio · Pull Request #7 · hack-commit-push/switzerland2025
https://github.com/hack-commit-push/switzerland2025/pull/7
0
6
2
🤔 Who said that AssertJ 3 is in maintenance mode? 📢 We're planning an exceptional 3.28 release – let us know what you'd like to see in there! 👇
github.com/orgs/assertj...
loading . . .
Backport Scope for AssertJ 3.28.0 · assertj · Discussion #4018
We recently talked about how version 4 still needs a bit more work and probably won't be ready until at least the first half of 2026. Releasing a new major version is a rare opportunity for us: we ...
https://github.com/orgs/assertj/discussions/4018
2 months ago
0
16
9
reposted by
AssertJ
Stefano Cordio
3 months ago
Hack.Commit.Push Switzerland is just one week away! 🇨🇭 This is a great opportunity to get involved in Open Source projects like
@assertj.github.io
, with direct guidance from the maintainers!
add a skeleton here at some point
0
7
8
reposted by
AssertJ
TheGeekInTheShell
4 months ago
Sur le blog de
#norsys
, mon collègue Kelean vient de publier un billet qui présente
@assertj.github.io
et comment le mettre à profit pour améliorer ses tests unitaires.
medium.com/norsys-octog...
#JUnit
#AssertJ
#Java
#Test
#TestUnitaire
0
4
3
reposted by
AssertJ
JUG Noord
4 months ago
Our next meetup will take place on November 4th at ING Leeuwarden to help you improve your testing with
@timtebeek.github.io
covering AssertJ and
@simoneromani.bsky.social
mutating tests for more confidence. Sign up at
www.meetup.com/jug-noord/ev...
!
0
7
5
It's great to see the community actively watching over the early development of AssertJ 4!
add a skeleton here at some point
4 months ago
0
4
1
reposted by
AssertJ
Ted M. Young (he/him) aka @JitterTed
4 months ago
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:
ted.dev/talks
#Java
#EventSourcing
#JUnit
#AssertJ
loading . . .
My Presentations | Ted M. Young
Articles, Videos, Training, and Coaching for Java Developers
https://ted.dev/talks/
0
7
4
Many thanks to our new sponsor, LambdaTest!
www.lambdatest.com
loading . . .
LambdaTest - AI Powered Testing Tool | AI Testing Agents On Cloud
Power your software testing with AI and cloud. Test intelligently, deploy and scale faster with LambdaTest unified testing platform.
https://www.lambdatest.com/
4 months ago
0
1
1
📢 AssertJ 3.27.6 has been released! This fixes a 🐛 regression related to the module descriptor 🧩 Happy assertions!
github.com/assertj/asse...
loading . . .
Release v3.27.6 · assertj/assertj
🐛 Bug Fixes Core Add missing export for org.assertj.core.annotation #3951 ❤️ Contributors Thanks to all the contributors who worked on this release: @duponter
https://github.com/assertj/assertj/releases/tag/assertj-build-3.27.6
4 months ago
0
9
8
📢 AssertJ 3.27.5 has been released! This 🛠️ upgrades ByteBuddy to its latest version to ensure smooth compatibility with Java 25 ☕ Happy assertions!
github.com/assertj/asse...
loading . . .
Release v3.27.5 · assertj/assertj
⚡ Improvements Core ByteBuddy in AssertJ 3.27.4 not compatible with Java 25 #3946 🔨 Dependency Upgrades Core Upgrade to Byte Buddy 1.17.7 #3947 Upgrade to JUnit BOM 5.13.4 #3947 Guava Upgrade ...
https://github.com/assertj/assertj/releases/tag/assertj-build-3.27.5
4 months ago
0
15
10
reposted by
AssertJ
4 months ago
Messy tests make messy code. In this session
@ted.dev
shows how to refactor JUnit tests with AssertJ, builders & patterns to keep them clear, lean & powerful. 🚀
www.dev2next.com/speaker/af08...
🎟️ Secure tickets at
dev2next.com
👀 Use code JOIN-TED-M.Y-50OFF for a discount!
0
3
2
reposted by
AssertJ
Spring I/O
5 months ago
🍃 Better Assertions with AssertJ by
@timtebeek.github.io
@ Spring I/O 2025 ▶️ Video:
youtu.be/k7sXn1v4fYc
🔗 Slides:
2025.springio.net/slides/bette...
🛠️ Repo:
github.com/timtebeek/be...
#springio25
loading . . .
Better Assertions with AssertJ by Tim te Beek @ Spring I/O 2025
YouTube video by Spring I/O
https://youtu.be/k7sXn1v4fYc
0
10
6
reposted by
AssertJ
Elias Nogueira 🇧🇷🇳🇱
5 months ago
Hard assertions = fast feedback ✅ But when one failure hides others, you lose valuable insight. 😥 Here’s how to use custom soft assertions with AssertJ to make your tests graceful, readable, and thorough:
eliasnogueira.com/assert-with-...
#java
#testing
#quality
loading . . .
Assert with Grace: Custom Soft Assertions using AssertJ for Cleaner Code - Elias Nogueira
Introduction If you don't know what a soft assertion is, please read Soft Asserts – Why should you use them for Unit and Integration tests? This article is a continuation of Assert with Grace: Custom…
https://eliasnogueira.com/assert-with-grace-custom-soft-assertions-using-assertj-for-cleaner-code/
0
10
5
reposted by
AssertJ
Todd Ginsberg
6 months ago
Last morning talk at
#KCDC2025
:
@jeanneboyarsky.bsky.social
is teaching us about testing beyond JUnit. Here, she’s covering
@assertj.github.io
1
8
3
reposted by
AssertJ
Tim te Beek
6 months ago
Excited to return to
@devoxx.com
with
@rickossendrijver.bsky.social
! See you there to modernize your test suite 🚀
1
13
1
📢 AssertJ 3.27.4 has been released! This fixes a 🐛 regression introduced in 3.26.0, brings a few minor 🚫 deprecations, and paves the way for ⚡ smoother NullAway integration. Happy assertions!
github.com/assertj/asse...
loading . . .
Release v3.27.4 · assertj/assertj
🚫 Deprecated Core Deprecate org.assertj.core.annotations.Beta in favor of org.assertj.core.annotation.Beta Deprecate org.assertj.core.util.CanIgnoreReturnValue in favor of org.assertj.core.annotat...
https://github.com/assertj/assertj/releases/tag/assertj-build-3.27.4
6 months ago
0
12
7
reposted by
AssertJ
Elias Nogueira 🇧🇷🇳🇱
6 months ago
Want cleaner, more expressive tests in Java? ✅ Avoid endless try-catch ✅ Group failures with elegance ✅ Use AssertJ the right way Soft assertions can raise your testing game without clutter. Learn how:
eliasnogueira.com/assert-with-...
#java
#quality
#test
#qualityengineering
loading . . .
Assert with Grace: Custom Soft Assertions using AssertJ for Cleaner Code - Elias Nogueira
Introduction If you don't know what a soft assertion is, please read Soft Asserts – Why should you use them for Unit and Integration tests? This article is a continuation of Assert with Grace: Custom…
https://eliasnogueira.com/assert-with-grace-custom-soft-assertions-using-assertj-for-cleaner-code
0
11
6
Something is brewing ☕
github.com/assertj/asse...
add a skeleton here at some point
6 months ago
0
6
4
reposted by
AssertJ
OpenRewrite by Moderne
6 months ago
OpenRewrite v8.59.1 is here! 🏖 ☸️ Parse Helm templates ⭐ Additional Groovy features 🧑🏫 More AssertJ best practices 🌀 Simplify annotation attributes 🪶 Tolerate invalid POMs ♻ Remove with Refaster 🔬 New static analysis recipes 🐞 Many smaller improvements & fixes
github.com/openrewrite/...
loading . . .
Release 3.12.1 · openrewrite/rewrite-recipe-bom
What's Changed OpenRewrite v8.59.1 rewrite-gradle-plugin v7.12.1 rewrite-maven-plugin v6.15.0 Full Changelog: v6.15.0
https://github.com/openrewrite/rewrite-recipe-bom/releases/tag/v3.12.1
0
13
5
Should we establish a dedicated space for the AssertJ community on Gitter? Cast your vote!
github.com/orgs/assertj...
loading . . .
Should AssertJ be on Gitter? · assertj · Discussion #3855
Sometimes, users and contributors would like to engage more interactively with both maintainers and the rest of the community, and communicating via GitHub might feel intimidating.
https://github.com/orgs/assertj/discussions/3855
8 months ago
0
2
2
reposted by
AssertJ
Stefano Cordio
8 months ago
📆 Only two weeks until Hack.Commit.Push, on June 13th in Winterthur!🇨🇭 Join us for a day of learning, sharing, and contributing to Open Source 🧑💻
winterthur2025.hack-commit-pu.sh
0
3
3
reposted by
AssertJ
Tom Cools
8 months ago
FYI, if you need to compare 2 objects in a
#java
test, do not manually compare all fields by calling the getters. Instead, do it with 1 line of AssertJ:
medium.com/@lucascalebe...
loading . . .
Simplify Your Java Tests with Recursive Comparison 🧪 🧼
In Java, writing tests often involves comparing objects to ensure they meet expected conditions. Typically, developers use assertions to…
https://medium.com/@lucascalebe/simplify-your-java-tests-with-recursive-comparison-80d5bae48730
0
15
6
reposted by
AssertJ
Tim te Beek
8 months ago
Join me in fifteen minutes for Better Assertions with AssertJ
@springio.net
room 5!
0
18
2
reposted by
AssertJ
Moderne.ai
8 months ago
The Moderne world tour continues! ✈️ Next up, meet us at
@springio.net
in beautiful Barcelona, May 22-23. 🤝 Don't miss
@timtebeek.github.io
's session, "Better Assertions with AssertJ" ☕ Details:
2025.springio.net/sessions/bet...
loading . . .
0
10
5
reposted by
AssertJ
Julien Roy
9 months ago
If you need a quick introduction to AssertJ-DB, my talk at Devoxx is available on youtube :
youtu.be/XILu4r3rIEc
#AssertJDB
#AssertJ
#tests
loading . . .
https://youtu.be/XILu4r3rIEc
0
5
3
reposted by
AssertJ
Petri Kainulainen
9 months ago
Learn to write unit tests for a
#SpringBoot
REST API endpoint that returns an object as JSON. This guide identifies the key tests, shows how to eliminate duplicate request building code, and demonstrates how to write the required assertions with MockMvcTester and AssertJ.
loading . . .
Writing Unit Test With MockMvcTester: Returning an Object as JSON - Petri Kainulainen
This blog post helps us to identify the required test cases and describes how we can write unit tests for a Spring MVC REST API endpoint that returns an object as JSON.
https://www.petrikainulainen.net/programming/testing/writing-unit-test-with-mockmvctester-returning-an-object-as-json/
0
2
2
reposted by
AssertJ
Stefano Cordio
9 months ago
📆 One month left! Join us for a full day of open source on June 13th!
add a skeleton here at some point
0
2
2
reposted by
AssertJ
Stefano Cordio
9 months ago
l'd be happy to help you get started with an AssertJ contribution, and there'll be other cool projects too-don't miss the opportunity!
add a skeleton here at some point
0
10
6
reposted by
AssertJ
Siva
9 months ago
A Practical Guide to Testing Spring Controllers With MockMvcTester
blog.jetbrains.com/idea/2025/04...
loading . . .
A Practical Guide to Testing Spring Controllers With MockMvcTester | The IntelliJ IDEA Blog
Spring Framework 6.2 introduced MockMvcTester to support writing AssertJ style assertions using AssertJ under the hood. If you’re using Spring Boot, the spring-boot-starter-test dependency transiti
https://blog.jetbrains.com/idea/2025/04/a-practical-guide-to-testing-spring-controllers-with-mockmvctester/
1
7
4
reposted by
AssertJ
OpenRewrite by Moderne
10 months ago
OpenRewrite v8.50.2 is here! 🎉 🐘 Gradle Kotlin DSL recipes 🌟 Groovy parser improvements 🔀 Expand JavaTemplate & Refaster support 🧪 New recipes for AssertJ & JUnit 5 🍃 Recipes for Spring Framework 6.2 & Spring Batch
github.com/openrewrite/...
loading . . .
Release 3.6.1 · openrewrite/rewrite-recipe-bom
What's Changed OpenRewrite v8.50.2 rewrite-gradle-plugin v7.4.1 rewrite-maven-plugin v6.6.0 Full Changelog: v6.6.0
https://github.com/openrewrite/rewrite-recipe-bom/releases/tag/v3.6.1
0
9
3
reposted by
AssertJ
Stefano Cordio
10 months ago
And here we are!
#VDZ25
0
5
2
reposted by
AssertJ
Spencer Gibb
11 months ago
I agree with what they said. Most of
@spring.io
uses AssertJ. Even some custom asserters too!
1
7
1
reposted by
AssertJ
Eric Deandrea
11 months ago
+1000 to AssertJ. Have even built my own customer asserters for my own domain to give more fluent assertions
1
12
3
reposted by
AssertJ
Gunnar Morling
11 months ago
Have you looked into AssertJ? It's my favorite assertion library for Java, typesafe overloads of assertThat(...) make for great auto-completion.
1
17
3
reposted by
AssertJ
Stefano Cordio
11 months ago
This year, you might see
@jocosti.bsky.social
and me in the crowd! Here's your chance to complain about that AssertJ feature you're missing, directly to the source! 😆 We're also happy if you just come over and say hello!
add a skeleton here at some point
1
3
1
📢 AssertJ 4.0.0-M1 has been released! 🚀 Required Java version increased to 17 🧩 Module-only build and modular Javadoc 🚫 Existing deprecations marked for removal Happy assertions!
github.com/assertj/asse...
loading . . .
Release v4.0.0-M1 · assertj/assertj
🧩 Binary Compatibility This release is binary incompatible with the previous major version. 💥 Breaking Changes Raise required Java version to 17 #3447 🚫 Deprecated Set since = "3" and forRemoval...
https://github.com/assertj/assertj/releases/tag/assertj-build-4.0.0-M1
11 months ago
0
16
6
reposted by
AssertJ
Stefano Cordio
11 months ago
This is finally done! To see how we put together in-module and extra-module testing, check
github.com/assertj/asse...
.
loading . . .
Add missing module descriptor to `assertj-guava`, adopt module-only build by scordio · Pull Request #3771 · assertj/assertj
Fixes Drop multi-release build in favor of module-only #3446 Deliverables In-module testing is successfully applied for assertj-core Module descriptor is added to assertj-guava Modular testing...
https://github.com/assertj/assertj/pull/3771
0
2
1
Want to know more about AssertJ-DB? Here's your chance to meet the project lead at
@devoxxfr.bsky.social
!
add a skeleton here at some point
12 months ago
0
5
3
reposted by
AssertJ
Donald Raab
12 months ago
Someone has expressed interest and started working on AssertJ support for Eclipse Collections. The wonders of open source. 🙏
github.com/eclipse-coll...
loading . . .
Eclipse Collections AssertJ Assertions Library? · Issue #1727 · eclipse-collections/eclipse-collections
I wasn’t sure where to post this. The mailing list seemed a bit dead, and a discussion board didn’t seem to be anywhere. I was trying to gauge the interest in creating a new module in the Eclipse C...
https://github.com/eclipse-collections/eclipse-collections/issues/1727
1
4
2
📢 AssertJ 3.27.3 has been released! This delivers a 💥 breaking change that reverts a feature from 3.27.0 incompatible with
@kotlinlang.org
1.9. Happy assertions!
github.com/assertj/asse...
loading . . .
Release v3.27.3 · assertj/assertj
💥 Breaking Changes Core Revert "Propagate common basetype for the extracting method" #3737 Details The enhancement introduced with #3673 breaks existing code on Kotlin 1.9; therefore, it has been...
https://github.com/assertj/assertj/releases/tag/assertj-build-3.27.3
about 1 year ago
0
8
6
reposted by
AssertJ
Elias Nogueira 🇧🇷🇳🇱
about 1 year ago
📊 Custom assertions = cleaner code! Learn how to create more readable and maintainable Java tests with
@assertj.github.io
👉🏻 Full article:
https://buff.ly/3VSI5OE
#java
#testing
#assertj
loading . . .
Assert with Grace: Custom Assertions using AssertJ for Cleaner Code
What's an assertion? It's a way to test an assumption in the code normally associated with an expected result, where we will compare it to the current outcome. We all know a lot of different…
https://buff.ly/3VSI5OE
0
1
2
📢 Here we go with AssertJ 3.27.2, the "final-final" 3.x release! This fixes a 🐛 regression introduced in 3.27.0. Happy assertions!
github.com/assertj/asse...
loading . . .
Release v3.27.2 · assertj/assertj
🐛 Bug Fixes Core Restore support for null-valued maps when ignoring fields #3723
https://github.com/assertj/assertj/releases/tag/assertj-build-3.27.2
about 1 year ago
2
20
7
📢 AssertJ 3.27.1 has been released! A few 🚫 deprecations and 🐛 bug fixes to celebrate the new year 🎇 This also marks 3.x entering maintenance mode and the beginning of 4.x development 🚀 Many thanks to all contributors and happy assertions!
github.com/assertj/asse...
loading . . .
Release v3.27.1 · assertj/assertj
🚫 Deprecated Core Deprecate usingComparatorForFields and remove deprecated assertions from usingComparatorForType documentation #3711 Deprecate hasCauseReference(Throwable) from Throwable assertio...
https://github.com/assertj/assertj/releases/tag/assertj-build-3.27.1
about 1 year ago
0
14
9
reposted by
AssertJ
Elias Nogueira 🇧🇷🇳🇱
about 1 year ago
⚙️ Elevate your Java testing with custom assertions using AssertJ! Clean up your test cases and improve readability. 👉🏻 Guide here:
https://buff.ly/3VSI5OE
#java
#testing
#assertj
loading . . .
Assert with Grace: Custom Assertions using AssertJ for Cleaner Code
What's an assertion? It's a way to test an assumption in the code normally associated with an expected result, where we will compare it to the current outcome. We all know a lot of different…
https://buff.ly/3VSI5OE
0
7
5
Load more
feeds!
log in