书栈网 · BookStack 本次搜索耗时 0.013 秒,为您找到 29 个相关结果.
  • Mock constructors in code you don’t own

    449 2021-11-12 《MockK Guidebook》
    Mock constructors in code you don’t own Unmocking Mock constructors in code you don’t own Sometimes your classes have dependencies that they construct themselves. While it’s be...
  • ArgumentCaptor

    360 2021-11-12 《MockK Guidebook》
    ArgumentCaptor Inline assertions ArgumentCaptor When you need to run additional assertions on an argument, the ArgumentCaptor is the tool for the job in Mockito. An Argument...
  • Why use mocks

    475 2021-11-12 《MockK Guidebook》
    Why use mocks Why use mocks How do you make sure your code runs like it’s supposed to? You can start out building your app, playing around with it, and trying buttons while ensu...
  • eq

    387 2021-11-12 《MockK Guidebook》
    eq eq By default, Mockito verifies argument values by using the equals() method, which corresponds to == in Kotlin. verify ( mock . containsAll ( listOf ( "a" , "b" ), ...
  • any*

    358 2021-11-12 《MockK Guidebook》
    any* any* When creating a stub or verifying a call, Mockito provides many different argument matchers. Besides eq , the most commonly used are the “any” family: any , anyBoole...
  • Comparables

    246 2021-11-12 《MockK Guidebook》
    Comparables more less cmpEq range Comparables less more range cmpEq MockK provides a few argument matchers for numbers and comparable objects. These matches all us...
  • Code Languages, Libraries, and Conventions

    Code Languages, Libraries, and Conventions Languages Kotlin Java Groovy Libraries Current Third-party Libraries Deprecated Third-party Libraries Conventions Code formatting ...
  • Method index

    502 2021-11-12 《MockK Guidebook》
    Method index Top level functions mockk<T>(...) spyk<T>() spyk(obj) slot every coEvery verify coVerify verifyAll coVerifyAll verifyOrder coVerifyOrder verify...
  • 50、Kotlin 支持

    50、Kotlin 支持 50.1、要求 50.2、Null 安全 50.3、Kotlin API 50.3.1、runApplication 50.3.2、扩展 50.4、依赖管理 50.5、@ConfigurationProperties 50.6、测试 50.7、资源 50.7.1、进阶阅读 50.7.2、示例 50、K...