Skip to content

Instantly share code, notes, and snippets.

@jcavell
jcavell / PaginationTest.kt
Created November 5, 2020 22:42
Demonstration of how pagination can work
package uk.gov.justice.digital.hmpps.pecs.jpc.service
import com.nhaarman.mockitokotlin2.any
import com.nhaarman.mockitokotlin2.eq
import com.nhaarman.mockitokotlin2.whenever
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.TestInstance
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.boot.test.mock.mockito.MockBean

Keybase proof

I hereby claim:

  • I am jcavell on github.
  • I am jonnycavell (https://keybase.io/jonnycavell) on keybase.
  • I have a public key ASCpX6WjBqtxx_5Gsa8HpUZMUufvH5O4nX5g3UJweQpDTwo

To claim this, I am signing this object:

[
{"name": "Liverpool", "points":88},
{"name": "Manchester", "points": 77}
]