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
4444import org.junit.jupiter.api.extension.ExtendWith
4545import org.springframework.core.io.ByteArrayResource
4646import org.springframework.data.domain.Page
47- import org.springframework.data.domain.Pageable
47+ import org.springframework.data.domain.PageRequest
4848import org.springframework.web.context.request.RequestContextHolder
4949import org.springframework.web.context.request.ServletRequestAttributes
5050import redis.clients.jedis.UnifiedJedis
@@ -104,7 +104,9 @@ class DatasetServiceImplTests {
104104 @Test
105105 fun `findAllDatasets should return empty list when no dataset exists` () {
106106 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()
108110
109111 val result = datasetService.findAllDatasets(ORGANIZATION_ID , null , null )
110112 assertEquals(emptyList(), result)
You can’t perform that action at this time.
0 commit comments