This test project belongs to a set of projects listed bellow:
This is the test project for the credit-simulator-api, so you need to run locally the API service to be able to run the tests.
The SimulationsTest class uses the restrictions-client project as a dependency to hit the correct endpoints. You can configure the credit-restrictions-api (if you changed it) in the api.properties file.
The package src/main/java/data
contains the data classes:
- CfpGenerator: class to generate a new valid CPF
- SimulationDataFactory: factory class for fake data creation
- SimulationsDataProvider: data provider for the negative scenarios