mirror of
https://github.com/corda/corda.git
synced 2025-01-11 23:43:03 +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)
|
runDateChange(nodeBAddr)
|
||||||
nextFixingDates.first { it == null || it > futureDate }
|
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")
|
val deals = api.getJson<Array<*>>("deals")
|
||||||
return deals.size
|
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