8000 GitHub - hamzaahmedkhan/how-to-mock · GitHub
[go: up one dir, main page]

Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HOW TO MOCK

  • Familiarity with Mock
    • To only test the functionality of a unit block and predict the behavior outside that block
  • Stubbing
  • Action
  • Verification
  • Assertion
  • When to use verify and when to use Assertion
  • When to use any() and when to avoid
  • By reference vs By Value
  • How data class is helpful
  • When to use captor
    • captor old, captor kotlin, argThat
  • Java to Kotlin interoperability
    • Use Kotlin object in Kotlin
    • Use Java object in Kotlin
  • Mock vs Spy

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0