# はじめに

これは flutter\_test や mockito を使用した Unit test を書く際、やりたいことに対してどのような書き方をすればいいのか分からず、結果として Unit test を苦手としてしまう人が多いのではないかと思い作るものです。

## 環境

```
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.2.1, on macOS 11.4 20F5055c darwin-x64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2021.1.1)
[✓] VS Code (version 1.55.2)
[✓] Connected device (1 available)
```

```yaml
dev_dependencies:
  flutter_test:
    sdk: flutter
  mockito: ^5.0.9
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cordea.gitbook.io/flutter-test-mockito-recipes/master.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
