Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eliasnogueira/simulations-test
This is the test project for the credit-simulator-api that shows how to modularise a test project creating a client and a test separately
https://github.com/eliasnogueira/simulations-test
api api-testing java microservices microservices-testing test-automation
Last synced: about 21 hours ago
JSON representation
This is the test project for the credit-simulator-api that shows how to modularise a test project creating a client and a test separately
- Host: GitHub
- URL: https://github.com/eliasnogueira/simulations-test
- Owner: eliasnogueira
- License: mit
- Created: 2020-10-27T21:23:41.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-28T21:03:09.000Z (about 2 years ago)
- Last Synced: 2024-10-12T18:32:28.696Z (about 1 month ago)
- Topics: api, api-testing, java, microservices, microservices-testing, test-automation
- Language: Java
- Homepage: http://eliasnogueira.com
- Size: 12.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Simulations test
This test project belongs to a set of projects listed bellow:* [simulations-client](https://github.com/eliasnogueira/simulations-client)
* [test-parent](https://github.com/eliasnogueira/test-parent)## What does this project do?
This is the test project for the [credit-simulator-api](https://github.com/eliasnogueira/credit-simulator-api), so you need to run locally the API service to be able to run the tests.The [SimulationsTest](https://github.com/eliasnogueira/simulations-test/blob/master/src/test/java/simulations/SimulationsTest.java)
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](https://github.com/eliasnogueira/simulations-test/blob/master/src/test/resources/api.properties) file.The package `src/main/java/data` contains the data classes:
* [CfpGenerator](https://github.com/eliasnogueira/simulations-test/blob/master/src/main/java/data/CpfGenerator.java): class to generate a new valid CPF
* [SimulationDataFactory](https://github.com/eliasnogueira/simulations-test/blob/master/src/main/java/data/SimulationDataFactory.java): factory class for fake data creation
* [SimulationsDataProvider](https://github.com/eliasnogueira/simulations-test/blob/master/src/main/java/data/SimulationDataProvider.java): data provider for the negative scenarios