Image for post
Image for post

Everybody write tests or we should at least. Assertions are used in lots of different kinds of tests such as Unit Test, API Test, Integration Testing, E2E Testing, Contract Testing, Stress/Load testing. Unit tests, Integration, and Contract tests can often be done with Junit. However, assertions sometimes can be a bit verbose and you might need to write some extra code in order to test what you are required to test. Today I want to share a video about a library for Java called AssertJ. AssertJ is Assertions fluent API. AssertJ has integration with other java libraries like Guava, JodaTime, and others. Today I want to share a video I made about it. So Let’s get started.

Video

Code

Cheers,

Diego Pacheco

Originally published at http://diego-pacheco.blogspot.com on July 25, 2020.

Brazilian, Software Architect, SWE(Java, Scala, Rust, Go) SOA & DevOps expert, Author. Working with EKS/K8S. diegopacheco.github.io (Opinions on my own)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store