Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,8 @@ with `when(cat.sound())`, so what should the code do? What is the "missing stub"
behavior?

* The "missing stub" behavior of a mock class generated with `@GenerateMocks` is
to throw an exception.
to throw an exception (with the exception of methods that return
`Future<void>` – see https://github.com/dart-lang/mockito/issues/581).
* The "missing stub" behavior of a mock class generated with
`@GenerateNiceMocks` is to return a "simple" legal value (for example, a
non-`null` value for a non-nullable return type). The value should not be used
Expand Down