-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rethink ThenFactory #5
Comments
… rather than a response now. This is to help with the problems mentioned in #5 where the thens assert on more than just the direct result of a when, but also things like database state
One way to solve this would be to encourage a test result type that encapsulates the direct result of the when (e.g. a HTTP response) and also other kinds of state. That way, all |
Another issue with |
…rfaces, some that can be chained as then(something.foo(1).bar(2)) and others as then(something).foo(1).bar(2)
Implemented in 4.0.0 |
In practise, the thens assert on not only the response from the when, but also other state such as database interactions and wiremock verifications. There might be a better way of modelling this, because currently there will be
ThenFactory
implementations that just ignore the response parameter entirely, which is a smell.The text was updated successfully, but these errors were encountered: