Eh. Instead of googling I should rather search her...
# getting-started
w
Eh. Instead of googling I should rather search here... Here is the solution from archives.
Copy code
kotlin
val mockJobRepository: JobRepository = mock {
    on { saveAndFlush<Job>(any()) }.doReturn(Job(1, ""))
}