public abstract class ProtocolTest
extends net.jodah.concurrentunit.ConcurrentTestCase
| Constructor and Description |
|---|
ProtocolTest() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Protocol |
createProtocol()
Creates a test protocol.
|
protected abstract String |
createUri(int id)
Creates a test URI.
|
void |
testClusterJoinActiveMember()
Tests a member joining on an active member of the cluster.
|
void |
testClusterJoinPassiveMember()
Tests a member joining on a passive member of the cluster.
|
void |
testClusterLeaveActiveMember()
Tests a member leaving on an active member of the cluster.
|
void |
testClusterLeavePassiveMember()
Tests a member leaving on a passive member of the cluster.
|
void |
testSendReceive()
Tests sending from a client to sever and back.
|
protected abstract Protocol createProtocol()
protected abstract String createUri(int id)
public void testClusterJoinActiveMember()
throws Throwable
Throwablepublic void testClusterJoinPassiveMember()
throws Throwable
Throwablepublic void testClusterLeaveActiveMember()
throws Throwable
Throwablepublic void testClusterLeavePassiveMember()
throws Throwable
ThrowableCopyright © 2013-2015. All Rights Reserved.