David Kubecka
06/04/2024, 1:20 PMfun <T> execute(operation: Operation, contract: ContractDTO, block: () -> T): T
every { execute(any(), any(), captureLambda()) } answers {
lambda<() -> ???>().invoke()
}
How to specify the lambda
type so that it can be used for any actual type T
?David Kubecka
06/04/2024, 1:36 PMephemient
06/04/2024, 3:58 PMAny?
?