MockK의 흑마술을 파헤치자!

Photo by Green Chameleon on Unsplash

mockk로 목인스턴스를 생성한다.

every로 앤써를 설정하다

목 인스턴스를 감시하는 CallRecorder

`CallRecorder` 상태 전환 다이어그램
CallRecorder 상태 전환 다이어그램

verify 메서드 호출

기타 이야기

마지막으로

--

--

--

developer @ htbeyond, SNU math graduate

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Suk-Kyo Suh

Suk-Kyo Suh

developer @ htbeyond, SNU math graduate

More from Medium

Flow Notes — sketchnotes for Kotlin flows

Concurrent Modification Exception-Android

Kotlin generic type inference doesn’t support super constructor call’s argument type.

Ktor: another boring HTTP framework? Part 1