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