public class ClientCommunicatorTest extends Object
ClientCommunicator works as expected.| Constructor and Description |
|---|
ClientCommunicatorTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
shouldCreateAndStartExpertAdvisorProtocolWhenExpertAdvisorIsRequested()
When the client request a trading algorithm of type expert advisor, the
ExpertAdvisorProtocol should be
used. |
void |
shouldCreateAndStartIndicatorProtocolWhenAnIndicatorIsRequested()
When the client requests a trading algorithm of the type trend indicator, the
IndicatorProtocol
should be used. |
void |
shouldPassCommunicationExceptionsToExceptionHandler()
When the protocol execution ends with a
CommunicationException it should be passed to the
ExceptionHandler for proper handling. |
void |
shouldPassRuntimeExceptionToExceptionHandler()
When the protocol execution ends with a
RuntimeException it should be passed to the
ExceptionHandler for proper handling. |
void |
wireUpDependencyMocks()
Wires up the behavior of the dependency mocks.
|
public void wireUpDependencyMocks()
public void shouldCreateAndStartIndicatorProtocolWhenAnIndicatorIsRequested()
throws de.voidnode.trading4j.server.protocol.CommunicationException
IndicatorProtocol
should be used.CommunicationException - not expected to leave the test.public void shouldCreateAndStartExpertAdvisorProtocolWhenExpertAdvisorIsRequested()
throws de.voidnode.trading4j.server.protocol.CommunicationException
ExpertAdvisorProtocol should be
used.CommunicationException - not expected to leave the test.public void shouldPassCommunicationExceptionsToExceptionHandler()
throws de.voidnode.trading4j.server.protocol.CommunicationException
CommunicationException it should be passed to the
ExceptionHandler for proper handling.CommunicationException - not expected to leave the test.public void shouldPassRuntimeExceptionToExceptionHandler()
throws de.voidnode.trading4j.server.protocol.CommunicationException
RuntimeException it should be passed to the
ExceptionHandler for proper handling.CommunicationException - not expected to leave the test.Copyright © 2016. All rights reserved.