public abstract class MonitoredSocket4TestCaseBase extends TestWithTempFile implements OptOutNotSupportedJavaxManagement, OptOutCustomContainerInstantiation
| Modifier and Type | Class and Description |
|---|---|
protected class |
MonitoredSocket4TestCaseBase.BytesReceivedCounterHandler |
protected class |
MonitoredSocket4TestCaseBase.BytesSentCounterHandler |
protected class |
MonitoredSocket4TestCaseBase.CounterHandlerBase |
protected static class |
MonitoredSocket4TestCaseBase.Item |
protected class |
MonitoredSocket4TestCaseBase.MessagesSentCounterHandler |
protected static interface |
MonitoredSocket4TestCaseBase.TwoClientsAction |
| Modifier and Type | Field and Description |
|---|---|
protected static int |
EXERCISES_COUNT |
| Constructor and Description |
|---|
MonitoredSocket4TestCaseBase() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
advanceClock(int time) |
protected abstract ClientConfiguration |
clientConfiguration() |
protected void |
configureClock(EnvironmentConfiguration environment) |
protected CountingSocket4Factory |
configuredSocketFactoryFor(ObjectContainer container) |
protected ExtObjectContainer |
openNewSession() |
protected void |
resetAllBeanCountersFor(ObjectContainer... clients) |
protected void |
resetBeanCountersFor(ObjectContainer container) |
protected ExtObjectServer |
server() |
protected abstract ServerConfiguration |
serverConfiguration() |
void |
setUp() |
protected void |
setupCountingSocketFactory(NetworkingConfiguration networkConfig) |
void |
tearDown() |
protected void |
withTwoClients(MonitoredSocket4TestCaseBase.TwoClientsAction action) |
tempFileprotected static final int EXERCISES_COUNT
public void setUp()
setUp in interface TestLifeCyclesetUp in class TestWithTempFileprotected void configureClock(EnvironmentConfiguration environment)
protected abstract ServerConfiguration serverConfiguration()
protected abstract ClientConfiguration clientConfiguration()
public void tearDown()
throws java.lang.Exception
tearDown in interface TestLifeCycletearDown in class TestWithTempFilejava.lang.Exceptionprotected void setupCountingSocketFactory(NetworkingConfiguration networkConfig)
protected CountingSocket4Factory configuredSocketFactoryFor(ObjectContainer container)
protected void withTwoClients(MonitoredSocket4TestCaseBase.TwoClientsAction action)
protected ExtObjectContainer openNewSession()
protected void resetAllBeanCountersFor(ObjectContainer... clients)
protected void resetBeanCountersFor(ObjectContainer container)
protected void advanceClock(int time)
protected ExtObjectServer server()