mockito 4.1.4 copy "mockito: ^4.1.4" to clipboard
mockito: ^4.1.4 copied to clipboard

outdated

A mock framework inspired by Mockito.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add mockito

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  mockito: ^4.1.4

Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:mockito/mockito.dart';
1.48k
likes
30
points
1.96M
downloads

Publisher

verified publisherdart.dev

Weekly Downloads

A mock framework inspired by Mockito.

Repository (GitHub)
Contributing

License

Apache-2.0 (license)

Dependencies

analyzer, build, code_builder, collection, dart_style, matcher, meta, source_gen, test_api

More

Packages that depend on mockito