Return to site
☕🧪AssertJ: If you love fluent API like Java Champion Otavio Santana, thus, AssertJ is an outlandish library for you.
☕🧪AssertJ: If you love fluent API like Java Champion Otavio Santana, thus, AssertJ is an outlandish library for you.
·
there are no silver bullets on the test stack.
a minimum for starting from scratch: JUnit-Jupiter, Mockito, AssertJ
Using Mockito integration with JUnit-Jupiter you can inject mock only using annotations.
AssertJ makes the assertions easier to understand, thanks to the fluent API:
assertThat(bahia.players())
.hasSize(2)
.map(Player::name)
.contains("Neymar", "Cristiano Ronaldo");
#JavaProject #IncreaseQuality #JUnit #Mockito #Java #javachampion