Sign in

AssertJ

@assertj.github.io
459 followers 4 following 29 posts

Fluent testing assertions for Java and the JVM

PostsRepliesMedia
Reposted by AssertJ
TestLens @testlens.app · 16/09/2026
When we started TestLens, we knew who we were building it for: teams that take their test suites seriously. So it means a lot that some of the most widely used testing projects in the JVM world now use TestLens on their own pull requests. 👉️ Read more: testlens.app/blog/2026/09... #java #junit
testlens.app
Leading Open Source Projects Trust TestLens
JUnit Framework, AssertJ, Apache Groovy, Apache Grails, and Spock Framework are early adopters of TestLens.
055
Reposted by AssertJ
JCON Conference @jcon.one · 10/08/2026
Our next #JCON2026 session is live: 'Better #Assertions with #AssertJ' with @timtebeek Not all #testing libraries are equal. Sure they all run your tests, but what happens when they #fail? “Expected ‘true’, was ‘false’” won’t help you … Grab your coffee and hit play: youtu.be/W7BhLNVHuqo
youtu.be
youtu.be
https://youtu.be/W7BhLNVHuqo
066
Reposted by AssertJ
Stefano Cordio @scordio.github.io · 11/07/2026
I had a blast at JUG Lucerne, with a small but engaging crowd whom I spent almost three hours with! 😍 What stuck with me the most: • AssertJ should be renamed to AssertJoy • They would love a hands-on follow-up with more advanced use cases Many thanks again to @mcpringle.bsky.social for having me!
082
Reposted by AssertJ
Stefano Cordio @scordio.github.io · 01/07/2026
No good weather today 🌧️ ☔ so why not join me in JUG Lucerne and find out what a handful of developers are doing to ship the next major version of AssertJ? 🧑‍💻 www.jug.ch/html/events/...
jug.ch
Java User Group Switzerland: Event "What's wrong with AssertJ?! - How a decade of technical debt is addressed in version 4.0"
AssertJ has been a player in Java testing for over a decade, providing an intuitive set of strongly typed assertions designed to maximize test readability. Since the launch of version 3.0, the library...
153
Reposted by AssertJ
Stefano Cordio @scordio.github.io · 14/05/2026
Now the Java User Group in Zurich knows what's wrong with AssertJ! And also how we're working to improve things. We're still in the early stages, but I can't wait to see all this work shipped to our users 🚀 Thank you so much to everyone who joined and @patbaumgartner.com for hosting! I had a blast!
083
Reposted by AssertJ
Stefano Cordio @scordio.github.io · 07/05/2026
Less than a week to go! 🚀 Join me this Tuesday at PH Zürich to discover how AssertJ 4 is about breaking things (carefully) to make your testing life better. Come for the technical debt, stay for the drinks and networking! 🍻 www.jug.ch/html/events/...
jug.ch
Java User Group Switzerland: Event "What's wrong with AssertJ?! - How a decade of technical debt is addressed in version 4.0"
AssertJ has been a player in Java testing for over a decade, providing an intuitive set of strongly typed assertions designed to maximize test readability. Since the launch of version 3.0, the library...
085
Reposted by AssertJ
Tim te Beek @timtebeek.github.io · 21/04/2026
Good morning @jcon.one ! For the most dedicated audience there's a 9AM testing talk. 😅 See you there!
1103
Reposted by AssertJ
JCON Conference @jcon.one · 19/02/2026
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
063
Reposted by AssertJ
Stefano Cordio @scordio.github.io · 17/02/2026
📢 AssertJ joined the GitHub Secure Open Source Fund, a program that leveled up security across 67 open source projects. What changed for us: SHA pinning, immutable releases, incident response plan, and a mindset shift toward security awareness 🔒 The impact? More robust JVM assertions 🚀
AssertJ quote from the GitHub Secure Open Source Fund: "We shifted security from a stretch goal to a core requirement."
1146
Reposted by AssertJ
OpenRewrite by Moderne @openrewrite.github.io · 11/02/2026
#OpenRewrite v8.73.0 is out! 🍰 🐍 Python 2 parser + Python 3 recipes 🐳 Docker parser + recipes 🍂 Propagate Maven parent POM changes 🧪 New AssertJ and Mockito recipes 🔌 Apache HttpAsyncClient 4→5 🏛️ Struts 1→2→5→6→7 recipes 🧙 Dropwizard 5.0 migration 🐛 Tons of fixes github.com/openrewrite/...
github.com
Release 3.24.0 · openrewrite/rewrite-recipe-bom
What's Changed Incorporates the latest versions of OpenRewrite (v8.73.0), the rewrite-gradle-plugin (v7.26.0), and the rewrite-maven-plugin (v6.29.0) to improve code parsing accuracy and recipe ex...
0114
AssertJ @assertj.github.io · 24/01/2026
📢 AssertJ 3.27.7 has been released! This fixes CVE-2026-24400 🔒 Happy assertions! github.com/assertj/asse...
github.com
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...
094
Reposted by AssertJ
Simon Martinelli @martinelli.ch · 13/01/2026
🚀 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 👍
github.com
GitHub - martinellich/testcontainers-mailpit
Contribute to martinellich/testcontainers-mailpit development by creating an account on GitHub.
062
Reposted by AssertJ
Mike Møller Nielsen @mike-programmer.bsky.social · 24/12/2025
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
youtu.be
AssertJ use it now
YouTube video by Mike Møller Nielsen
095
Reposted by AssertJ
AssertJ @assertj.github.io · 18/11/2025
🤔 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...
github.com
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 ...
0159
Reposted by AssertJ
OpenRewrite by Moderne @openrewrite.github.io · 05/12/2025
#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/...
github.com
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...
093
Reposted by AssertJ
Ted M. Young (he/him) aka @JitterTed @ted.dev · 28/11/2025
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.
1234
Reposted by AssertJ
Stefano Cordio @scordio.github.io · 22/11/2025
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-...
github.com
Add AssertJ contributions by scordio · Pull Request #7 · hack-commit-push/switzerland2025
052
AssertJ @assertj.github.io · 18/11/2025
🤔 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...
github.com
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 ...
0159
Reposted by AssertJ
Stefano Cordio @scordio.github.io · 13/11/2025
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!
078
Reposted by AssertJ
TheGeekInTheShell @thegeekintheshell.bsky.social · 17/10/2025
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
043
Reposted by AssertJ
JUG Noord @jugnoord.bsky.social · 13/10/2025
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... !
074
AssertJ @assertj.github.io · 09/10/2025
It's great to see the community actively watching over the early development of AssertJ 4!
031
Reposted by AssertJ
Ted M. Young (he/him) aka @JitterTed @ted.dev · 07/10/2025
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
ted.dev
My Presentations | Ted M. Young
Articles, Videos, Training, and Coaching for Java Developers
074
AssertJ @assertj.github.io · 30/09/2025
Many thanks to our new sponsor, LambdaTest! www.lambdatest.com
lambdatest.com
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.
011
AssertJ @assertj.github.io · 22/09/2025
📢 AssertJ 3.27.6 has been released! This fixes a 🐛 regression related to the module descriptor 🧩 Happy assertions! github.com/assertj/asse...
github.com
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
098
AssertJ @assertj.github.io · 19/09/2025
📢 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...
github.com
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 ...
01510
Reposted by AssertJ
dev2next.bsky.social @dev2next.bsky.social · 18/09/2025
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!
032
Reposted by AssertJ
Spring I/O @springio.net · 12/09/2025
🍃 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
youtu.be
Better Assertions with AssertJ by Tim te Beek @ Spring I/O 2025
YouTube video by Spring I/O
0106
Reposted by AssertJ
Elias Nogueira 🇧🇷🇳🇱 @eliasnogueira.com · 21/08/2025
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
eliasnogueira.com
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…
0105
AssertJ @assertj.github.io · 16/08/2025
`satisfies(Consumer...)` is an effective option for executing assertions with the same root instance, while soft assertions allow executing assertions on multiple unrelated instances.
130
Reposted by AssertJ
Todd Ginsberg @todd.ginsberg.com · 15/08/2025
Last morning talk at #KCDC2025: @jeanneboyarsky.bsky.social is teaching us about testing beyond JUnit. Here, she’s covering @assertj.github.io
183
Reposted by AssertJ
Tim te Beek @timtebeek.github.io · 07/08/2025
Excited to return to @devoxx.com with @rickossendrijver.bsky.social ! See you there to modernize your test suite 🚀
Screenshot showing accepted hands on lab of  two hours called Breaking your testing habits, presented by Rick Ossendrijver and Tim te Beek.
1131
AssertJ @assertj.github.io · 07/08/2025
📢 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...
github.com
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...
0117
Reposted by AssertJ
Elias Nogueira 🇧🇷🇳🇱 @eliasnogueira.com · 04/08/2025
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
eliasnogueira.com
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…
0116
AssertJ @assertj.github.io · 31/07/2025
Something is brewing ☕ github.com/assertj/asse...
github.com
assertj/assertj
AssertJ is a library providing easy to use rich typed assertions - assertj/assertj
064
Reposted by AssertJ
OpenRewrite by Moderne @openrewrite.github.io · 24/07/2025
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/...
github.com
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
0135
AssertJ @assertj.github.io · 14/07/2025
The AssertJ Recursive Comparison might be a good candidate for your use case: assertj.github.io/doc/#assertj...
An AssertJ code snippet that demonstrates how the recursive comparison can be used to ignore fields of a specific type:

```
record Person(String name, Instant birthday) {}

@Test
void test() {
    var person1 = new Person("John", Instant.EPOCH);
    var person2 = new Person("John", Instant.now());
    
    assertThat(person1)
        .usingRecursiveComparison()
        .ignoringFieldsOfTypes(Instant.class)
        .isEqualTo(person2);
}
```
0182
AssertJ @assertj.github.io · 13/07/2025
Hi @mrdofu.bsky.social, we're discussing it within the team. Feel free to keep an eye on github.com/assertj/asse....
github.com
Release 0.5.0 · Issue #232 · assertj/assertj-vavr
Hi @mchmielarz and @pivovarit, a user on BlueSky asked when the 0.5.0 release for assertj-vavr will happen. Any new release under the AssertJ namespace will need to be done via the Sonatype Central...
010
AssertJ @assertj.github.io · 15/06/2025
Should we establish a dedicated space for the AssertJ community on Gitter? Cast your vote! github.com/orgs/assertj...
github.com
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.
022
Reposted by AssertJ
Stefano Cordio @scordio.github.io · 02/06/2025
📆 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
Trainings:
Git /GitHub

Projects:
AssertJ (Java)
Cucumber (C++)
Harbor CLI (Go)
JReleaser (Java)
OpenFeature (Java, JavaScript, Go, Python, ...)
Spring Batch (Java)
vmlens (Java)
033
Reposted by AssertJ
Tom Cools @tomcools.be · 05/06/2025
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...
medium.com
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…
0155
Reposted by AssertJ
Tim te Beek @timtebeek.github.io · 22/05/2025
Join me in fifteen minutes for Better Assertions with AssertJ @springio.net room 5!
0172
Reposted by AssertJ
Moderne.ai @moderneai.bsky.social · 20/05/2025
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...
0105
Reposted by AssertJ
Julien Roy @julienroy.bsky.social · 17/05/2025
If you need a quick introduction to AssertJ-DB, my talk at Devoxx is available on youtube : youtu.be/XILu4r3rIEc #AssertJDB #AssertJ #tests
youtu.be
053
Reposted by AssertJ
Petri Kainulainen @petrikainulainen.bsky.social · 13/05/2025
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.
petrikainulainen.net
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.
022
Reposted by AssertJ
Stefano Cordio @scordio.github.io · 13/05/2025
📆 One month left! Join us for a full day of open source on June 13th!
022
Reposted by AssertJ
Stefano Cordio @scordio.github.io · 29/04/2025
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!
0106
Reposted by AssertJ
Siva @sivalabs.in · 22/04/2025
A Practical Guide to Testing Spring Controllers With MockMvcTester blog.jetbrains.com/idea/2025/04...
blog.jetbrains.com
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
174
Reposted by AssertJ
OpenRewrite by Moderne @openrewrite.github.io · 10/04/2025
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/...
github.com
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
083
Reposted by AssertJ
Stefano Cordio @scordio.github.io · 25/03/2025
And here we are! #VDZ25
042