Mockito is a testing suite that allows us to test communication without need the server to be up. It can model the service client and the datasource, so we can do full sequence tests without needing real data or the servers being up.
# How do I do it?
First generate mock versions of all the data that you want to test.
```dart
@GenerateMocks([
\\insertmockableclasseshere
])
voidmain(){
// do nothing, generate mocks...
}
```
Then run the `autogenerate.sh` file to create the mock files needed for testing.