I am new to testing and I have to use assertj framework for softassertions. These are standard assertions that are repeated over multiple tests. For every test I define new SoftAssertion, do the asserts and then do .assertAll()
This seems like a lot of boiler plate code. Is it possible to abstract the assert functions and the assertall() method in a base class so that my tests could extend the class?
Aucun commentaire:
Enregistrer un commentaire