public class TestWithPeerGroup extends TestWithNetworkConnections
TestWithNetworkConnections.ClientType
Modifier and Type | Field and Description |
---|---|
protected static NetworkParameters |
params |
protected PeerGroup |
peerGroup |
protected VersionMessage |
remoteVersionMessage |
address, blockChain, blockStore, key, newPeerWriteTargetQueue, PEER_SERVERS, socketAddress, unitTestParams, wallet
Constructor and Description |
---|
TestWithPeerGroup(TestWithNetworkConnections.ClientType clientType) |
Modifier and Type | Method and Description |
---|---|
protected InboundMessageQueuer |
connectPeer(int id) |
protected InboundMessageQueuer |
connectPeer(int id,
VersionMessage versionMessage) |
protected InboundMessageQueuer |
connectPeerWithoutVersionExchange(int id) |
protected InboundMessageQueuer |
handleConnectToPeer(int id) |
protected InboundMessageQueuer |
handleConnectToPeer(int id,
VersionMessage versionMessage) |
protected void |
initPeerGroup() |
void |
setUp() |
void |
setUp(BlockStore blockStore) |
void |
tearDown() |
closePeer, connect, inbound, outbound, peerOf, pingAndWait, startPeerServer, startPeerServers, stopPeerServer, stopPeerServers, waitForOutbound
protected static final NetworkParameters params
protected PeerGroup peerGroup
protected VersionMessage remoteVersionMessage
public TestWithPeerGroup(TestWithNetworkConnections.ClientType clientType)
public void setUp() throws Exception
setUp
in class TestWithNetworkConnections
Exception
public void setUp(BlockStore blockStore) throws Exception
setUp
in class TestWithNetworkConnections
Exception
public void tearDown()
tearDown
in class TestWithNetworkConnections
protected void initPeerGroup()
protected InboundMessageQueuer connectPeerWithoutVersionExchange(int id) throws Exception
Exception
protected InboundMessageQueuer connectPeer(int id) throws Exception
Exception
protected InboundMessageQueuer connectPeer(int id, VersionMessage versionMessage) throws Exception
Exception
protected InboundMessageQueuer handleConnectToPeer(int id) throws Exception
Exception
protected InboundMessageQueuer handleConnectToPeer(int id, VersionMessage versionMessage) throws Exception
Exception
Copyright © 2014. All rights reserved.