Testing Out Kotlin
summary
Shows concrete test conversions from Java to Kotlin with code samples and tools: Robolectric shadow access, Espresso for E2E, Mockito and mockito-kotlin for mocks, Android Studio/IntelliJ support. Demonstrates extension functions and properties, infix assertions like should have title, reified generics used to implement setupActivity and a compact networkCaptor, and extension-lambda based replay helpers. Quantifies testing guidance (about 70% unit, 20% integration, 10% end-to-end) and reports reducing verbose captor boilerplate down to ~18 and ~14 line implementations.
AI-written summary · about
chapters (16)
- 0:00Start
- 2:59Types of Tests
- 4:11Integration Tests
- 5:05End-to-End Tests
- 7:27Accessing Getters and Setters
- 8:19Extension Functions and Extension Properties
- 9:12Extension Properties
- 11:44Add an Assertion
- 12:12Fluent Assertion
- 12:58Kotlin Supports in Fixed Calls
- 14:43Setup Activity
- 16:34Lambdas
- 20:11Cleaned Up Api
- 20:45Type Alias
- 21:42Extension Lambda
- 23:22Extension Lambdas








