Remove statement about real objects in 0004-define-mocks-with-explicit-behaviour.md

This part is not relevant to this ADR and we agreed to cover that bit in a more wider team decision
This commit is contained in:
Davide Farella 2021-09-21 16:30:23 +02:00
parent b7f2aff9aa
commit 66a6848b33
1 changed files with 0 additions and 2 deletions

View File

@ -25,8 +25,6 @@ highlighting the reason of the test failure.
* We should never use relaxed mocks
* acceptable if its declaration is internal to a single test case, ensuring a good degree of control an isolation
* It can be ok to use `mockk(relaxedUnitFun = true)`, as the result will be what we expect: an `Unit`
* We should avoid mocking data models and use real instances instead
* acceptable to mock legacy data models if contains business code, like `Message.decrypt` that we currently have
## Consequences
1. We should stick to what agreed here going forward, aiming to replace the current mocks in the project