Done
Details
Assignee
Adam DickmeissAdam DickmeissReporter
Julian LadischJulian LadischPriority
TBDDevelopment Team
Core: PlatformFix versions
TestRail: Cases
Open TestRail: CasesTestRail: Runs
Open TestRail: Runs
Details
Details
Assignee
Adam Dickmeiss
Adam DickmeissReporter
Julian Ladisch
Julian LadischPriority
Development Team
Core: Platform
Fix versions
TestRail: Cases
Open TestRail: Cases
TestRail: Runs
Open TestRail: Runs
Created February 24, 2020 at 1:03 PM
Updated March 10, 2022 at 9:19 PM
Resolved February 24, 2022 at 2:52 PM
When methods require a Handler<AsyncResult<T>>> parameter instead of Handler<ExtendedAsyncResult<T>>> parameter we can use existing AsyncResult based tools, for example Vertx' TestContext.asyncAssertSuccess.
This is possible because Okapi's ExtendedAsyncResult extends Vertx' AsyncResult:
https://github.com/folio-org/okapi/blob/v2.36.3/okapi-common/src/main/java/org/folio/okapi/common/ExtendedAsyncResult.java
Use
if (result instanceof ExtendedAsyncResult)
where access toExtendedAsyncResult.getType()
is needed. This may be provided byExtendedAsyncResult.getType(AsyncResult)
.