Skip to content

Commit

Permalink
Polishing.
Browse files Browse the repository at this point in the history
See #2926
  • Loading branch information
sdeleuze authored and mp911de committed Sep 12, 2023
1 parent 957fdf4 commit ccfa93a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
package org.springframework.data.repository.kotlin

import io.mockk.mockk
import kotlinx.coroutines.delay
import kotlinx.coroutines.runBlocking
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.BeforeEach
Expand Down Expand Up @@ -45,7 +46,7 @@ class CoroutineCrudRepositoryCustomImplementationUnitTests {
}

@Test // DATACMNS-1508
fun shouldInvokeFindAll() {
fun shouldInvokeFindOne() {

val result = runBlocking {
coRepository.findOne("foo")
Expand All @@ -71,6 +72,7 @@ class CoroutineCrudRepositoryCustomImplementationUnitTests {
class MyCustomCoRepositoryImpl : MyCustomCoRepository {

override suspend fun findOne(id: String): User {
delay(1)
return User()
}
}
Expand Down

0 comments on commit ccfa93a

Please sign in to comment.