概要 こちらのページで構築した Spring Boot アプリケーションのテストを記述するためには spring-boot-starter-test を利用します。依存ライブラリとして JUnit や Mockito などが利用されています。以下の公式ドキュメントを参考にしつつ簡単な使用方法をまとめます。 チュートリアル Getting Started / Testing the Web Layer ユーザーガイド Spring Boot Reference Guide Spring Framework Reference / 14. Unit Testing Spring Framework Reference / 15. Integration Testing JUnit 4.12 API (2017/9/10 に GA リリースされた JUnit 5 は ./gradlew depe