

Kotlin TDD - Populating and Parsing with http4k Lenses
source link: https://www.youtube.com/watch?v=e-P4fEW3ZLA
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Kotlin TDD - Populating and Parsing with http4k Lenses
In order to properly test our client for an external service, we decide to develop our own fake version of the dependency, which leads to a lot of duplication between our client and server code.
As usual Dave and Ivan have us covered - we can use lenses https://www.http4k.org/guide/howto/ty... to give a single source of truth.
This is Part 41 of an exploration of where a Test Driven Development implementation of the Gilded Rose stock control system might take us in Kotlin. You can see the whole series as a playlist https://www.youtube.com/playlist?list... and the code on GitHub https://github.com/dmcg/gilded-rose-tdd
You can see other http4k content in a playlist - https://youtube.com/playlist?list=PL1...
If you like this, you’ll probably like the book Java to Kotlin, A Refactoring Guidebook http://java-to-kotlin.dev.
Show less Show more
</div
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK