public class UnstartedMockNode
A class that represents an unstarted mock node for testing.
Modifier and Type | Class and Description |
---|---|
static class |
UnstartedMockNode.Companion |
Modifier and Type | Field and Description |
---|---|
static UnstartedMockNode.Companion |
Companion |
Modifier and Type | Method and Description |
---|---|
int |
getId()
An identifier for the node. By default this is allocated sequentially in a
class MockNetwork |
StartedMockNode |
getStarted()
A
class StartedMockNode object for this running node. |
<T extends SerializeAsToken> |
installCordaService(java.lang.Class<T> serviceClass)
Install a custom test-only
interface CordaService . |
boolean |
isStarted()
Whether this node has been started yet.
|
StartedMockNode |
start()
Start the node
|
public static UnstartedMockNode.Companion Companion
public int getId()
An identifier for the node. By default this is allocated sequentially in a class MockNetwork
class MockNetwork
public <T extends SerializeAsToken> T installCordaService(java.lang.Class<T> serviceClass)
Install a custom test-only interface CordaService
.
NOTE: There is no need to call this method if the service class is defined in the CorDapp and the class TestCordapp
API is used.
interface CordaService
,
class TestCordapp
public StartedMockNode start()
Start the node
class StartedMockNode
object.public StartedMockNode getStarted()
A class StartedMockNode
object for this running node.
class StartedMockNode
public boolean isStarted()
Whether this node has been started yet.