Enhancements to the platform builders

Some of the DataSetup classes also provide additional methods to enhance some of platform test data builders. For example, PASubmissionDataSetup is a DataSetup class that enhances PASubmissionBuilder by providing the following methods:

  • provideDefaultCoverages() - Sets specific deductibles to prevent the creation of underwriting issues.
  • provideDefaultDriver() - If not already provided, provide a default driver.
  • provideDefaultVehicle() - If not already provided, provide a default vehicle with an existing driver.
  • withDriverAge(age) - Add a driver having the given age to the builder. A driver under the age of 25 will cause an underwriting rule to execute.
  • withDriver(PersonBuilder) - Add a driver with the given PersonBuilder to the submission.
  • withVehicleGarageState(State) - Add a vehicle having the given garage state.
  • withVehicle(price, state, PolicyDriverBuilder) - Add a vehicle with the given price, given state, and given driver to the submission.