mirror of
https://github.com/corda/corda.git
synced 2024-12-24 15:16:45 +00:00
Started adding a new part of the IRS test.
This commit is contained in:
parent
9b1cb931e9
commit
3d2079ea70
@ -61,6 +61,8 @@ class IRSDemoTest : IntegrationTestCategory {
|
||||
|
||||
runDateChange(nodeBAddr)
|
||||
nextFixingDates.first { it == null || it > futureDate }
|
||||
|
||||
assertThat(getTrades(nodeAAddr)[0] as InterestRateSwap.State)
|
||||
}
|
||||
}
|
||||
|
||||
@ -104,4 +106,10 @@ class IRSDemoTest : IntegrationTestCategory {
|
||||
val deals = api.getJson<Array<*>>("deals")
|
||||
return deals.size
|
||||
}
|
||||
|
||||
private fun getTrades(nodeAddr: HostAndPort): Array<*> {
|
||||
val api = HttpApi.fromHostAndPort(nodeAddr, "api/irs")
|
||||
val deals = api.getJson<Array<*>>("deals")
|
||||
return deals
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user