rcd27
12/30/2022, 3:16 PMktorembeddedServermockkktorCLOVIS
12/30/2022, 3:23 PMCLOVIS
12/30/2022, 3:23 PMrcd27
12/30/2022, 3:28 PMrcd27
12/30/2022, 3:28 PMtestApplicationcreateClientRoman Pavlyuk
12/31/2022, 5:36 PMtestApplication {
    //mock top level getStuff() func
    mockkStatic("my.package.name.ClassKt")
    every { getStuff() } returns listOf(Stuff(), Stuff())
    // mock class
    val repository = mockk<MyRepository>()
    val target = MyService(repository)
    every { repository.save(any()) } just Runs
}