AssertJ
@assertj.github.io
π€ 457
π₯ 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 months ago
0
9
4
reposted by
AssertJ
Stefano Cordio
7 days ago
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!
add a skeleton here at some point
0
8
2
reposted by
AssertJ
Stefano Cordio
17 days ago
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/...
loading . . .
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...
https://www.jug.ch/html/events/2026/assertj-lu.html
1
5
4
reposted by
AssertJ
Stefano Cordio
2 months ago
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!
0
8
3
reposted by
AssertJ
Stefano Cordio
2 months ago
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/...
loading . . .
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...
https://www.jug.ch/html/events/2026/assertj.html
0
8
5
reposted by
AssertJ
Tim te Beek
3 months ago
Good morning
@jcon.one
! For the most dedicated audience there's a 9AM testing talk. π See you there!
1
10
3
reposted by
AssertJ
JCON Conference
5 months ago
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
0
6
3
reposted by
AssertJ
Stefano Cordio
5 months ago
π’ 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 π
1
14
6
reposted by
AssertJ
OpenRewrite by Moderne
5 months ago
#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/...
loading . . .
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...
https://github.com/openrewrite/rewrite-recipe-bom/releases/tag/v3.24.0
0
11
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 months ago
0
9
4
reposted by
AssertJ
Simon Martinelli
6 months 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
7 months 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
9
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
8 months ago
0
16
9
reposted by
AssertJ
OpenRewrite by Moderne
7 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
8 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
8 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
8 months ago
0
16
9
reposted by
AssertJ
Stefano Cordio
8 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
9 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
9 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
9 months ago
0
4
1
reposted by
AssertJ
Ted M. Young (he/him) aka @JitterTed
9 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/
10 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
10 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
10 months ago
0
15
10
reposted by
AssertJ
10 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
10 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 π§π·π³π±
11 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
11 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
12 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
11 months ago
0
12
7
reposted by
AssertJ
Elias Nogueira π§π·π³π±
12 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
12 months ago
0
6
4
reposted by
AssertJ
OpenRewrite by Moderne
12 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
about 1 year ago
0
2
2
reposted by
AssertJ
Stefano Cordio
about 1 year 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
about 1 year 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
about 1 year ago
Join me in fifteen minutes for Better Assertions with AssertJ
@springio.net
room 5!
0
17
2
reposted by
AssertJ
Moderne.ai
about 1 year 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
about 1 year 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
about 1 year 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
about 1 year 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
about 1 year 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
about 1 year 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
over 1 year 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
over 1 year ago
And here we are!
#VDZ25
0
5
2
reposted by
AssertJ
Spencer Gibb
over 1 year 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
over 1 year 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
over 1 year 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
over 1 year 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
over 1 year ago
0
16
6
Load more
feeds!
log in