prime-simplereport icon indicating copy to clipboard operation
prime-simplereport copied to clipboard

Use Lombok builders in test data factory

Open nathancrtr opened this issue 4 years ago • 1 comments

A number of the test data factory methods do not accept arguments that can be passed into the constructor. If a developer wants to run assertions against a non-configurable property, they must add a new method to the library that accepts the desired parameter and creates an instance with that value.

Investigate using Lombok builders to invert this pattern so that we can have more granular control over the test fixtures we are producing.

nathancrtr avatar Nov 04 '21 19:11 nathancrtr

Would also want to update the backend tests to match this new pattern.

emmastephenson avatar Nov 10 '21 21:11 emmastephenson