public class NodeTestUtils
Modifier and Type | Method and Description |
---|---|
static LedgerDSL<net.corda.testing.dsl.TestTransactionDSLInterpreter,net.corda.testing.dsl.TestLedgerDSLInterpreter> |
ledger(ServiceHub $receiver,
Party notary,
Function1<? super net.corda.testing.dsl.LedgerDSL<net.corda.testing.dsl.TestTransactionDSLInterpreter,net.corda.testing.dsl.TestLedgerDSLInterpreter>,Unit> script)
Creates and tests a ledger built by the passed in dsl.
|
static Actor |
testActor(CordaX500Name owningLegalIdentity)
Creates a new
class Actor for use in testing with the given owningLegalIdentity. |
static InvocationContext |
testContext(CordaX500Name owningLegalIdentity)
Creates a new
class InvocationContext for use in testing with the given owningLegalIdentity. |
static LedgerDSL<net.corda.testing.dsl.TestTransactionDSLInterpreter,net.corda.testing.dsl.TestLedgerDSLInterpreter> |
transaction(ServiceHub $receiver,
Party notary,
Function1<? super net.corda.testing.dsl.TransactionDSL<? extends net.corda.testing.dsl.TransactionDSLInterpreter>,? extends net.corda.testing.dsl.EnforceVerifyOrFail> script)
Creates a ledger with a single transaction, built by the passed in dsl.
|
public static LedgerDSL<net.corda.testing.dsl.TestTransactionDSLInterpreter,net.corda.testing.dsl.TestLedgerDSLInterpreter> ledger(ServiceHub $receiver, Party notary, Function1<? super net.corda.testing.dsl.LedgerDSL<net.corda.testing.dsl.TestTransactionDSLInterpreter,net.corda.testing.dsl.TestLedgerDSLInterpreter>,Unit> script)
Creates and tests a ledger built by the passed in dsl.
public static LedgerDSL<net.corda.testing.dsl.TestTransactionDSLInterpreter,net.corda.testing.dsl.TestLedgerDSLInterpreter> transaction(ServiceHub $receiver, Party notary, Function1<? super net.corda.testing.dsl.TransactionDSL<? extends net.corda.testing.dsl.TransactionDSLInterpreter>,? extends net.corda.testing.dsl.EnforceVerifyOrFail> script)
Creates a ledger with a single transaction, built by the passed in dsl.
LedgerDSLInterpreter._transaction
public static Actor testActor(CordaX500Name owningLegalIdentity)
Creates a new class Actor
for use in testing with the given owningLegalIdentity.
class Actor
public static InvocationContext testContext(CordaX500Name owningLegalIdentity)
Creates a new class InvocationContext
for use in testing with the given owningLegalIdentity.
class InvocationContext