mockk is a open-source awesome android. ✰✰✰ 3496.
→ Full source available on the repo link.
→ Released under open-source.
You stop paying for per-seat licenses on com...
#opensource #selfhosted #awesomeandroid
mockk is a open-source awesome android. ✰✰✰ 3496.
→ Full source available on the repo link.
→ Released under open-source.
You stop paying for per-seat licenses on com...
#opensource #selfhosted #awesomeandroid
#Android #AndroidDevelopment #Kotlin #UnitTesting #SoftwareEngineering
#Android #AndroidDevelopment #Kotlin #UnitTesting #SoftwareEngineering
#llm #llm-агент #android #android #development #claude #opencode #unit-testing
Origin | Interest | Match
#llm #llm-агент #android #android #development #claude #opencode #unit-testing
Origin | Interest | Match
Learn to get the required dependencies with Maven and Gradle, and understand how you can create mocks with MockK when you are writing unit tests for a #kotlin application with #JUnit Jupiter.
Read the blog post: www.petrikainulainen.net/programming/...
Learn to get the required dependencies with Maven and Gradle, and understand how you can create mocks with MockK when you are writing unit tests for a #kotlin application with #JUnit Jupiter.
Read the blog post: www.petrikainulainen.net/programming/...
val now = Instant.now().toString()
と書きたいけど、どうやってテスト書くんだろう??
と思った。
val mockInstant = mockk
mockkStatic(Instant::class)
evry {Instant.now()} returns mockInstant
evry …
へ〜。書けるんだ…。さすが先輩。
でも、テストの時だけ外から注入できるように書けばもっと簡単になりそうでは?
と思ったけどその考えが妥当なのかが分からない🐣ピヨ。
val now = Instant.now().toString()
と書きたいけど、どうやってテスト書くんだろう??
と思った。
val mockInstant = mockk
mockkStatic(Instant::class)
evry {Instant.now()} returns mockInstant
evry …
へ〜。書けるんだ…。さすが先輩。
でも、テストの時だけ外から注入できるように書けばもっと簡単になりそうでは?
と思ったけどその考えが妥当なのかが分からない🐣ピヨ。
コンストラクタとinitにバリデーション書くのやめよ?ファクトリメソッドでResult返して?
コンストラクタとinitにバリデーション書くのやめよ?ファクトリメソッドでResult返して?
Software practices: I would diminish as much as possible the use of companion objects or static functions in general. Since they make testability harder.
Limit inheritance as much as possible.
Software practices: I would diminish as much as possible the use of companion objects or static functions in general. Since they make testability harder.
Limit inheritance as much as possible.
It should be of a certain type, but its method should behave as configured. Both Mockk and Mockito use under the hood ByteBuddy, a library that allows objects to be made at runtime. Here is how it can be used to create a fake instance of UserService.
It should be of a certain type, but its method should behave as configured. Both Mockk and Mockito use under the hood ByteBuddy, a library that allows objects to be made at runtime. Here is how it can be used to create a fake instance of UserService.
https://usstaffinginc.org/c2c-hiring-for-lead-android-developer-in-seattle-wa-bellevue-wa-onsite-hybrid/
#US #Jobs #US #Staffing
Result Details
https://usstaffinginc.org/c2c-hiring-for-lead-android-developer-in-seattle-wa-bellevue-wa-onsite-hybrid/
#US #Jobs #US #Staffing
Result Details
https://usstaffinginc.org/hiring-lead-android-developer-seattle-wa-onsite-hybrid-2/
#US #Jobs #US #Staffing
Event Attributes
https://usstaffinginc.org/hiring-lead-android-developer-seattle-wa-onsite-hybrid-2/
#US #Jobs #US #Staffing
Event Attributes
https://usstaffinginc.org/hiring-lead-android-developer-seattle-wa-onsite-hybrid/
#US #Jobs #US #Staffing
Event Attributes
https://usstaffinginc.org/hiring-lead-android-developer-seattle-wa-onsite-hybrid/
#US #Jobs #US #Staffing
Event Attributes