public class MessageBasedClientConnectionTest extends Object
MessageBasedClientConnection works as expected.| Constructor and Description |
|---|
MessageBasedClientConnectionTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
shouldFailWhenReadingAnUnknownMessageNumber()
Should fail when an arbitrary message should be read next but the message number that was read is unknown.
|
void |
shouldFailWhenReadingAWrongMessageNumber()
The class should throw an exception when the read message number is not the correct message number for the
message that should be read next.
|
void |
shouldFailWhenTradingEnvironmentMessagesContainsUnknownForexPair()
Should fail when a trading environment message with an unknown forex pair was received.
|
void |
shouldReadAccountCurrencyExchangeRateChangedMessageCorrectly()
The reader should be able to read
AccountCurrencyExchangeRateChangedMessages correctly. |
void |
shouldReadAlgorithmRequestMessages()
The class should be able to read
RequestTradingAlgorithmMessages correctly. |
void |
shouldReadBalanceChangedMessagesCorrectly()
The reader should be able to read
BalanceChangedMessages correctly. |
void |
shouldReadNewMarketDataExtendedMessages()
The class should be able to read
NewMarketDataExtendedMessage correctly. |
void |
shouldReadNewMarketDataSimpleMessages()
The class should be able to read
NewMarketDataSimpleMessage correctly. |
void |
shouldReadPendingOrderConditionalyClosedMessagesCorrectly()
The reader should be able to read
PendingOrderConditionalyClosedMessage messages correctly. |
void |
shouldReadPendingOrderConditionalyExecutedMessagesCorrectly()
The reader should be able to read
PendingOrderConditionalyExecutedMessage messages correctly. |
void |
shouldReadResponseChangeCloseConditionsMessagesCorrectly()
The reader should be able to read
ResponseChangeCloseConditionsMessages correctly. |
void |
shouldReadResponsePlacePendingOrderMessagesCorrectly()
The reader should be able to read
ResponsePlacePendingOrderMessage messages correctly. |
void |
shouldReadTradingEnvironmentMessagesCorreclty()
The reader should be able to read
TradingEnvironmentInformationMessages correctly. |
void |
shouldWriteChangeCloseConditionMessagesCorrectly()
The class should be able to write
ChangeCloseConditionsMessage messages correctly. |
void |
shouldWriteCloseOrCancelPendingOrderMessagesCorrectly()
The class should be able to write
CloseOrCancelPendingOrderMessage messages correctly. |
void |
shouldWriteEventHandlingFinishedMessagesCorrectly()
The class should be able to write
EventHandlingFinishedMessage messages correctly. |
void |
shouldWritePlacePendingOrderMessagesCorrectly()
The class should be able to write
PlacePendingOrderMessage messages correctly. |
void |
shouldWriteTrendForMarketDataMessages()
The class should be able to write
TrendForMarketDataMessage correctly. |
public void shouldReadAlgorithmRequestMessages()
throws de.voidnode.trading4j.server.protocol.CommunicationException
RequestTradingAlgorithmMessages correctly.de.voidnode.trading4j.server.protocol.CommunicationException - Not expected to leave the test method.public void shouldReadNewMarketDataSimpleMessages()
throws de.voidnode.trading4j.server.protocol.CommunicationException
NewMarketDataSimpleMessage correctly.de.voidnode.trading4j.server.protocol.CommunicationException - Not expected to leave the test method.public void shouldReadNewMarketDataExtendedMessages()
throws de.voidnode.trading4j.server.protocol.CommunicationException
NewMarketDataExtendedMessage correctly.de.voidnode.trading4j.server.protocol.CommunicationException - Not expected to leave the test method.public void shouldReadResponsePlacePendingOrderMessagesCorrectly()
throws de.voidnode.trading4j.server.protocol.CommunicationException
ResponsePlacePendingOrderMessage messages correctly.de.voidnode.trading4j.server.protocol.CommunicationException - Not expected to leave the test method.public void shouldReadPendingOrderConditionalyExecutedMessagesCorrectly()
throws de.voidnode.trading4j.server.protocol.CommunicationException
PendingOrderConditionalyExecutedMessage messages correctly.de.voidnode.trading4j.server.protocol.CommunicationException - Not expected to leave the test method.public void shouldReadPendingOrderConditionalyClosedMessagesCorrectly()
throws de.voidnode.trading4j.server.protocol.CommunicationException
PendingOrderConditionalyClosedMessage messages correctly.de.voidnode.trading4j.server.protocol.CommunicationException - Not expected to leave the test method.public void shouldReadTradingEnvironmentMessagesCorreclty()
throws de.voidnode.trading4j.server.protocol.CommunicationException
TradingEnvironmentInformationMessages correctly.de.voidnode.trading4j.server.protocol.CommunicationException - Not expected to leave the test method.public void shouldReadResponseChangeCloseConditionsMessagesCorrectly()
throws de.voidnode.trading4j.server.protocol.CommunicationException
ResponseChangeCloseConditionsMessages correctly.de.voidnode.trading4j.server.protocol.CommunicationException - Not expected to leave the test method.public void shouldReadBalanceChangedMessagesCorrectly()
throws de.voidnode.trading4j.server.protocol.CommunicationException
BalanceChangedMessages correctly.de.voidnode.trading4j.server.protocol.CommunicationException - Not expected to leave the test method.public void shouldReadAccountCurrencyExchangeRateChangedMessageCorrectly()
throws de.voidnode.trading4j.server.protocol.CommunicationException
AccountCurrencyExchangeRateChangedMessages correctly.de.voidnode.trading4j.server.protocol.CommunicationException - Not expected to leave the test method.public void shouldWriteTrendForMarketDataMessages()
throws de.voidnode.trading4j.server.protocol.CommunicationException
TrendForMarketDataMessage correctly.de.voidnode.trading4j.server.protocol.CommunicationException - Not expected to leave the test method.public void shouldWritePlacePendingOrderMessagesCorrectly()
throws de.voidnode.trading4j.server.protocol.CommunicationException
PlacePendingOrderMessage messages correctly.de.voidnode.trading4j.server.protocol.CommunicationException - Not expected to leave the test method.public void shouldWriteCloseOrCancelPendingOrderMessagesCorrectly()
throws de.voidnode.trading4j.server.protocol.CommunicationException
CloseOrCancelPendingOrderMessage messages correctly.de.voidnode.trading4j.server.protocol.CommunicationException - Not expected to leave the test method.public void shouldWriteEventHandlingFinishedMessagesCorrectly()
throws de.voidnode.trading4j.server.protocol.CommunicationException
EventHandlingFinishedMessage messages correctly.de.voidnode.trading4j.server.protocol.CommunicationException - Not expected to leave the test method.public void shouldWriteChangeCloseConditionMessagesCorrectly()
throws de.voidnode.trading4j.server.protocol.CommunicationException
ChangeCloseConditionsMessage messages correctly.de.voidnode.trading4j.server.protocol.CommunicationException - Not expected to leave the test method.public void shouldFailWhenReadingAWrongMessageNumber()
throws de.voidnode.trading4j.server.protocol.CommunicationException
de.voidnode.trading4j.server.protocol.CommunicationException - if it is a MessageReadException it is expected, all other sub-types indicate a test failure.public void shouldFailWhenReadingAnUnknownMessageNumber()
throws de.voidnode.trading4j.server.protocol.CommunicationException
de.voidnode.trading4j.server.protocol.CommunicationException - if it is a MessageReadException it is expected, all other sub-types indicate a test failure.public void shouldFailWhenTradingEnvironmentMessagesContainsUnknownForexPair()
throws de.voidnode.trading4j.server.protocol.CommunicationException
de.voidnode.trading4j.server.protocol.CommunicationException - if it is a MessageReadException it is expected, all other sub-types indicate a test failure.Copyright © 2016. All rights reserved.