January 28, 2024
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