Skip to content

bazaartechnologies/how-to-mock

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 62.9%
  • Kotlin 37.1%