File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
dataset/src/test/kotlin/com/cosmotech/dataset/service Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ import org.junit.jupiter.api.assertThrows
44
44
import org.junit.jupiter.api.extension.ExtendWith
45
45
import org.springframework.core.io.ByteArrayResource
46
46
import org.springframework.data.domain.Page
47
- import org.springframework.data.domain.Pageable
47
+ import org.springframework.data.domain.PageRequest
48
48
import org.springframework.web.context.request.RequestContextHolder
49
49
import org.springframework.web.context.request.ServletRequestAttributes
50
50
import redis.clients.jedis.UnifiedJedis
@@ -104,7 +104,9 @@ class DatasetServiceImplTests {
104
104
@Test
105
105
fun `findAllDatasets should return empty list when no dataset exists` () {
106
106
every { organizationService.getVerifiedOrganization(ORGANIZATION_ID ) } returns Organization ()
107
- every { datasetRepository.findAll(any<Pageable >()) } returns Page .empty()
107
+ every {
108
+ datasetRepository.findByOrganizationIdNoSecurity(any<String >(), any<PageRequest >())
109
+ } returns Page .empty()
108
110
109
111
val result = datasetService.findAllDatasets(ORGANIZATION_ID , null , null )
110
112
assertEquals(emptyList(), result)
You can’t perform that action at this time.
0 commit comments