mockito 2.2.2
mockito: ^2.2.2 copied to clipboard
A mock framework inspired by Mockito.
2.2.2 #
- Remove last violation of
USES_DYNAMIC_AS_BOTTOMerror. This should make Mockito compatible with Dart 2 semantics.
2.2.1 #
- Internal fixes only (stop using comment-based generic method syntax).
2.2.0 #
- Add new feature to wait for an interaction:
untilCalled. See the README for documentation.
2.1.0 #
- Add documentation for
when,verify,verifyNever,resetMockitoState. - Expose
throwOnMissingStub,resetMockitoState. - Improve failure message for
verify. - SDK version ceiling bumped to
<2.0.0-dev.infinityto support Dart 2.0 development testing. - Add a Mockito + test package example at
test/example/iss.
2.0.2 #
- Start using the new
InvocationMatcherinstead of the old matcher. - Change
throwOnMissingStubback to invokingObject.noSuchMethod:- It was never documented what the thrown type should be expected as.
- You can now just rely on
throwsNoSuchMethodErrorif you want to catch it.
2.0.1 #
- Add a new
throwOnMissingStubmethod to the API.
2.0.0 #
- Removed
mockito_no_mirrors.dart
2.0.0-dev #
- Remove export of
spyand anydart:mirrorsbased API frommockito.dart. Users may import aspackage:mockito/mirrors.dartgoing forward. - Deprecated
mockito_no_mirrors.dart; replace withmockito.dart. - Require Dart SDK
>=1.21.0 <2.0.0to use generic methods.
1.0.1 #
- Add a new
thenThrowmethod to the API. - Document
thenAnswerin the README. - Add more dartdoc.
1.0.0 #
- Add a new
typedAPI that is compatible with Dart Dev Compiler; documented in README.md.
0.11.1 #
- Move the reflection-based
spycode into a private source file. Nowpackage:mockito/mockito.dartincludes this reflection-based API, and a newpackage:mockito/mockito_no_mirrors.dartdoesn't require mirrors.
0.11.0 #
- Equality matcher used by default to simplify matching collections as arguments. Should be non-breaking change in most cases, otherwise consider using
argThat(identical(arg)).
0.10.0 #
- Added support for spy.
0.9.0 #
- Migrate from the unittest package to use the new test package.
- Format code using dartformat