You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/controllers/v1/TransactionsControllerTest.kt
+7-4
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,10 @@ class TransactionsControllerTest(
35
35
val hmppsId = "200313116M"
36
36
val prisonId = "ABC"
37
37
val accountCode = "spends"
38
-
val basePath = "/v1/prison/$prisonId/prisoners/$hmppsId/accounts/$accountCode/transactions"
38
+
val clientUniqueRef = "client_unique_ref"
39
+
val basePath = "/v1/prison/$prisonId/prisoners/$hmppsId"
40
+
val transactionsPath = "$basePath/accounts/$accountCode/transactions"
41
+
val transactionPath = "$basePath/accounts/$clientUniqueRef/transactions"
39
42
val mockMvc = IntegrationAPIMockMvc(springMockMvc)
40
43
41
44
val transactions =
@@ -54,7 +57,7 @@ class TransactionsControllerTest(
54
57
55
58
it("calls the service with expected parameters when supplied a date range") {
56
59
val dateParams = "?from_date=2025-01-01&to_date=2025-01-01"
Copy file name to clipboardexpand all lines: src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/gateways/nomis/GetTransactionForPersonServiceTest.kt
Copy file name to clipboardexpand all lines: src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/services/GetTransactionForPersonServiceTest.kt
Copy file name to clipboardexpand all lines: src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/services/GetTransactionsForPersonServiceTest.kt
-1
Original file line number
Diff line number
Diff line change
@@ -205,7 +205,6 @@ internal class GetTransactionsForPersonServiceTest(
205
205
).shouldBe(true)
206
206
}
207
207
208
-
// break this
209
208
it("returns null when transactions are requested from an unapproved prison") {
0 commit comments