HOME ブログ サーバー , Kotlin 【サーバーサイドKotlin】KotlinTestによるKotlin × SpringBootの単体テスト こんにちは、サーバーサイドエンジニアの竹端です。 以前【サーバーサイドKotlin】ことりん × テスト with SpringFrameworkにてKotlinのテストフレームワークの検証内容をご紹介をしました。 この時はSpek、KotelinTestというKotlin製のフレームワークがSpring Frameworkとの相性の問題で使えず、JUnitを採用するという検証結果になっていました。 しかし、その後KotlinTestにアップデートがあり、Spring FrameworkのDIに対応がされたため、そちらへ移行することとなりました。 今回はKotlinTestをSpring Frameworkを併せて使った際のテストコードの