public class TomP2PTests extends Object
To start a bootstrap node code use the SeedNodeForTesting class.
To configure your test environment edit the static fields for id, IP and port. In the configure method and the connectionType you can define your test scenario.
| Modifier and Type | Field and Description |
|---|---|
RepeatRule |
repeatRule |
| Constructor and Description |
|---|
TomP2PTests() |
| Modifier and Type | Method and Description |
|---|---|
void |
bootstrapInUnknownMode() |
void |
setUp() |
void |
tearDown() |
void |
testAdd() |
void |
testAddGet() |
void |
testAddGetWithReconnect() |
void |
testAddRemove() |
void |
testBootstrapDirectConnection() |
void |
testBootstrapInRelayMode() |
void |
testBootstrapWithPortForwarding() |
void |
testParallelStartupWithPutGet() |
void |
testPut() |
void |
testPutGet() |
void |
testSendDirectBetweenLocalPeers() |
void |
testSendDirectToSeedNode() |
public RepeatRule repeatRule
public void setUp()
public void tearDown()
public void testBootstrapDirectConnection()
throws Exception
Exceptionpublic void testBootstrapWithPortForwarding()
throws Exception
Exceptionpublic void testParallelStartupWithPutGet()
throws IOException,
ClassNotFoundException,
InterruptedException
public void testSendDirectBetweenLocalPeers()
throws Exception
ExceptionCopyright © 2014. All rights reserved.