Anton Afanasev
05/06/2021, 4:50 PMMattia Tommasone
05/06/2021, 4:53 PMevery
blocks and in verify
blocks
a spyk can only be used in verify
blocks and it will execute the real methods of the object it spiesAnton Afanasev
05/06/2021, 4:58 PMspyk
for any object that does not use an every
? Since it is more close to being a real object?Mattia Tommasone
05/06/2021, 4:59 PMMattia Tommasone
05/06/2021, 4:59 PMevery
but you can use a relaxed mockMattia Tommasone
05/06/2021, 5:00 PMdatabase.saveSomething()
function returning Unit
you don’t want to really save things to database in this case so you don’t want to use a spyMattia Tommasone
05/06/2021, 5:01 PMevery
on itAnton Afanasev
05/06/2021, 6:00 PMchristophsturm
05/06/2021, 6:08 PMMattia Tommasone
05/06/2021, 6:09 PMchristophsturm
05/06/2021, 6:09 PMAnton Afanasev
05/06/2021, 6:09 PMAnton Afanasev
05/06/2021, 6:10 PMchristophsturm
05/06/2021, 6:10 PMAnton Afanasev
05/06/2021, 6:11 PMchristophsturm
05/06/2021, 6:11 PMMattia Tommasone
05/06/2021, 6:11 PMMattia Tommasone
05/06/2021, 6:11 PMchristophsturm
05/06/2021, 6:12 PMchristophsturm
05/06/2021, 6:13 PMAnton Afanasev
05/06/2021, 6:13 PMAnton Afanasev
05/06/2021, 6:14 PMAnton Afanasev
05/06/2021, 6:15 PMchristophsturm
05/06/2021, 6:15 PMchristophsturm
05/06/2021, 6:16 PMMattia Tommasone
05/06/2021, 6:16 PMchristophsturm
05/06/2021, 6:17 PMAnton Afanasev
05/06/2021, 6:18 PMAnton Afanasev
05/06/2021, 6:19 PMchristophsturm
05/06/2021, 6:19 PMMattia Tommasone
05/06/2021, 6:19 PMMattia Tommasone
05/06/2021, 6:20 PMchristophsturm
05/06/2021, 6:20 PMdave08
05/18/2021, 9:39 AMdave08
05/18/2021, 9:40 AM