Studying spring cloud contract have a question about testing statefull services.
Have two services: Server and Client. Server has a state, in my case it has repository with users. I can test Server states with spring cloud contract using scenarios.
My second step is using Server-stub for Client testing. In this case I'd like to have Server-stub with one (or more) users. I can make this contract (just imagine Service always has users), but it will be another one.
What is the way to use the same contract to verify Server answers (firstly Server has zero state) and stubbing it while Client tests(when I need stub with some state)?
PS tried to add tag spring-cloud-contract, by rating is not enough.
Aucun commentaire:
Enregistrer un commentaire