Skip to content

Commit 835e7e0

Browse files
committed
Update SmokeTest
1 parent 56d7937 commit 835e7e0

File tree

1 file changed

+37
-35
lines changed

1 file changed

+37
-35
lines changed

src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/smoke/person/SentencesSmokeTest.kt

+37-35
Original file line numberDiff line numberDiff line change
@@ -29,42 +29,44 @@ class SentencesSmokeTest : DescribeSpec(
2929
"""
3030
{
3131
"data": [
32-
{
33-
"dataSource": "NOMIS",
34-
"dateOfSentencing": "2019-08-24",
35-
"description": "string",
36-
"fineAmount": $fineAmountMinNumberValue,
37-
"isActive": null,
38-
"isCustodial": true,
39-
"length": {
40-
"duration": null,
41-
"units": null,
42-
"terms": [
43-
{
44-
"years": 1,
45-
"months": 2,
46-
"weeks": 3,
47-
"days": 4,
48-
"hours": null,
49-
"prisonTermCode": "string"
50-
}
51-
]
32+
{
33+
"serviceSource": "NOMIS",
34+
"systemSource": "PRISON_SYSTEMS",
35+
"dateOfSentencing": "2019-08-24",
36+
"description": "string",
37+
"isActive": null,
38+
"isCustodial": true,
39+
"fineAmount": -1.7976931348623157E308,
40+
"length": {
41+
"duration": null,
42+
"units": null,
43+
"terms": [
44+
{
45+
"years": 1,
46+
"months": 2,
47+
"weeks": 3,
48+
"days": 4,
49+
"hours": null,
50+
"prisonTermCode": "string"
51+
}
52+
]
53+
}
54+
},
55+
{
56+
"serviceSource": "NDELIUS",
57+
"systemSource": "PROBATION_SYSTEMS",
58+
"dateOfSentencing": "2019-08-24",
59+
"description": "string",
60+
"isActive": true,
61+
"isCustodial": false,
62+
"fineAmount": null,
63+
"length": {
64+
"duration": -2147483648,
65+
"units": "Hours",
66+
"terms": []
67+
}
5268
}
53-
},
54-
{
55-
"dataSource": "NDELIUS",
56-
"dateOfSentencing": "2019-08-24",
57-
"description": "string",
58-
"fineAmount": null,
59-
"isActive": true,
60-
"isCustodial": false,
61-
"length": {
62-
"duration": $hourMinIntValue,
63-
"units": "Hours",
64-
"terms": []
65-
}
66-
}
67-
],
69+
],
6870
"pagination": {
6971
"isLastPage": true,
7072
"count": 2,

0 commit comments

Comments
 (0)