mirror of
https://github.com/corda/corda.git
synced 2025-05-02 16:53:22 +00:00
Fixes an error in the contract testing tutorial.
This commit is contained in:
parent
e13f64b1b3
commit
247c57766c
@ -35,14 +35,18 @@ We start with the empty ledger:
|
|||||||
|
|
||||||
.. sourcecode:: java
|
.. sourcecode:: java
|
||||||
|
|
||||||
import static net.corda.core.testing.JavaTestHelpers.*;
|
import kotlin.Unit;
|
||||||
import static net.corda.core.contracts.JavaTestHelpers.*;
|
import org.junit.Test;
|
||||||
|
|
||||||
@Test
|
import static net.corda.testing.NodeTestUtils.ledger;
|
||||||
public void emptyLedger() {
|
|
||||||
ledger(l -> {
|
public class CommercialPaperTest {
|
||||||
return Unit.INSTANCE; // We need to return this explicitly
|
@Test
|
||||||
});
|
public void emptyLedger() {
|
||||||
|
ledger(l -> {
|
||||||
|
return Unit.INSTANCE;
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
The DSL keyword ``ledger`` takes a closure that can build up several transactions and may verify their overall
|
The DSL keyword ``ledger`` takes a closure that can build up several transactions and may verify their overall
|
||||||
|
Loading…
x
Reference in New Issue
Block a user