mirror of
https://github.com/corda/corda.git
synced 2024-12-19 04:57:58 +00:00
Correct typo - "countryparty" to "counterparty"
This commit is contained in:
parent
2f9af7d7dc
commit
3499e06e27
@ -42,8 +42,8 @@ class SimmValuationTest : IntegrationTestCategory {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun getPartyWithName(partyApi: HttpApi, countryparty: String): PortfolioApi.ApiParty =
|
private fun getPartyWithName(partyApi: HttpApi, counterparty: String): PortfolioApi.ApiParty =
|
||||||
getAvailablePartiesFor(partyApi).counterparties.single { it.text == countryparty }
|
getAvailablePartiesFor(partyApi).counterparties.single { it.text == counterparty }
|
||||||
|
|
||||||
private fun getAvailablePartiesFor(partyApi: HttpApi): PortfolioApi.AvailableParties {
|
private fun getAvailablePartiesFor(partyApi: HttpApi): PortfolioApi.AvailableParties {
|
||||||
return partyApi.getJson<PortfolioApi.AvailableParties>("whoami")
|
return partyApi.getJson<PortfolioApi.AvailableParties>("whoami")
|
||||||
@ -68,4 +68,4 @@ class SimmValuationTest : IntegrationTestCategory {
|
|||||||
val valuations = partyApi.getJson<PortfolioApiUtils.ValuationsView>("${counterparty.id}/portfolio/valuations")
|
val valuations = partyApi.getJson<PortfolioApiUtils.ValuationsView>("${counterparty.id}/portfolio/valuations")
|
||||||
return (valuations.initialMargin.call["total"] != 0.0)
|
return (valuations.initialMargin.call["total"] != 0.0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user