corda / net.corda.testing.dsl / TestLedgerDSLInterpreter / retrieveOutputStateAndRef

retrieveOutputStateAndRef

fun <S : ContractState> retrieveOutputStateAndRef(clazz: Class<S>, label: String): StateAndRef<S>

Retrieves an output previously defined by TransactionDSLInterpreter.output with a label passed in.

Parameters

clazz - The class object holding the type of the output state expected.

label - The label of the to-be-retrieved output state.

Return
The output StateAndRef.