- setUpClassToTestAndDependencies() - Method in class de.voidnode.trading4j.server.oio.OioClientConnectionIT
-
Sets up the class to test and its dependencies.
- setUpCut() - Method in class de.voidnode.trading4j.server.protocol.expertadvisor.PendingOrderMapperTest
-
Sets up the initial state of the PendingOrderMapper.
- setUpCut() - Method in class de.voidnode.trading4j.server.reporting.implementations.CombiningNotifierTest
-
Sets up the cut.
- setUpCut() - Method in class de.voidnode.trading4j.server.reporting.implementations.MailNotifierTest
-
Initializes the cut.
- setUpMocks() - Method in class de.voidnode.trading4j.server.protocol.expertadvisor.RemoteBrokerTest
-
Sets up the default behavior of the mocks.
- setUpMocks() - Method in class de.voidnode.trading4j.server.protocol.IndicatorProtocolTest
-
Wires up the mocks.
- setUpMocksAndCut() - Method in class de.voidnode.trading4j.server.protocol.expertadvisor.ExpertAdvisorProtocolTest
-
Wires up the mocks and set up the class to test.
- setUpMocksAndCut() - Method in class de.voidnode.trading4j.server.protocol.expertadvisor.LocalExpertAdvisorTest
-
Sets up the default behavior of the mocks.
- setUpProtocol() - Method in class de.voidnode.trading4j.server.protocol.IndicatorProtocolTest
-
Sets up the protocol to test.
- shouldBeAbleToReadBytes() - Method in class de.voidnode.trading4j.server.oio.OioClientConnectionIT
-
The connection should be able to read
Bytes over the network.
- shouldBeAbleToReadDoubles() - Method in class de.voidnode.trading4j.server.oio.OioClientConnectionIT
-
The connection should be able to read
Doubles over the network.
- shouldBeAbleToReadIntegers() - Method in class de.voidnode.trading4j.server.oio.OioClientConnectionIT
-
The connection should be able to read
Integers over the network.
- shouldBeAbleToReadLongss() - Method in class de.voidnode.trading4j.server.oio.OioClientConnectionIT
-
The connection should be able to read
Longs over the network.
- shouldBeAbleToReadUtf8Strings() - Method in class de.voidnode.trading4j.server.oio.OioClientConnectionIT
-
The connection should be able to length prepended UTF-8
Strings over the network.
- shouldBeAbleToRemoveMappings() - Method in class de.voidnode.trading4j.server.protocol.expertadvisor.PendingOrderMapperTest
-
- shouldBeAbleToWriteBytes() - Method in class de.voidnode.trading4j.server.oio.OioClientConnectionIT
-
The connection should be able to write
Bytes to the network.
- shouldBeAbleToWriteDoubles() - Method in class de.voidnode.trading4j.server.oio.OioClientConnectionIT
-
The connection should be able to write
Doubles to the network.
- shouldBeAbleToWriteIntegers() - Method in class de.voidnode.trading4j.server.oio.OioClientConnectionIT
-
The connection should be able to write
Integers to the network.
- shouldBeAbleToWriteLongs() - Method in class de.voidnode.trading4j.server.oio.OioClientConnectionIT
-
The connection should be able to write
Longs to the network.
- shouldBufferDataToSendAsLongAsDataIsAvailableForReadAndBufferIsNotFull() - Method in class de.voidnode.trading4j.server.oio.OioClientConnectionIT
-
As long as there are more bytes available to read, the connection should buffer the data to send.
- shouldCloseOrCancelPendingOrdersCorrectly() - Method in class de.voidnode.trading4j.server.protocol.expertadvisor.RemoteBrokerTest
-
- shouldCloseTheConnectionWhenAnUnknownExpertAdvisorWasRequested() - Method in class de.voidnode.trading4j.server.TradingServerAT
-
When a client connects and requests an unknown expert advisor the server should terminate the connection.
- shouldCloseTheConnectionWhenAnUnknownIndicatorWasRequested() - Method in class de.voidnode.trading4j.server.TradingServerAT
-
When a client connects and requests an unknown indicator the server should terminate the connection.
- shouldCreateAndStartExpertAdvisorProtocolWhenExpertAdvisorIsRequested() - Method in class de.voidnode.trading4j.server.protocol.ClientCommunicatorTest
-
When the client request a trading algorithm of type expert advisor, the ExpertAdvisorProtocol should be
used.
- shouldCreateAndStartIndicatorProtocolWhenAnIndicatorIsRequested() - Method in class de.voidnode.trading4j.server.protocol.ClientCommunicatorTest
-
When the client requests a trading algorithm of the type trend indicator, the IndicatorProtocol
should be used.
- shouldFailForUnknownMessageClasses() - Method in class de.voidnode.trading4j.server.protocol.messages.MessageTypeTest
-
When the
Class passed to
MessageType does implement
Message but is unknown to
MessageType, an exception should be thrown.
- shouldFailWhenReadingAnUnknownMessageNumber() - Method in class de.voidnode.trading4j.server.protocol.messages.MessageBasedClientConnectionTest
-
Should fail when an arbitrary message should be read next but the message number that was read is unknown.
- shouldFailWhenReadingAWrongMessageNumber() - Method in class de.voidnode.trading4j.server.protocol.messages.MessageBasedClientConnectionTest
-
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.
- shouldFailWhenTradingEnvironmentMessagesContainsUnknownForexPair() - Method in class de.voidnode.trading4j.server.protocol.messages.MessageBasedClientConnectionTest
-
Should fail when a trading environment message with an unknown forex pair was received.
- shouldFailWhenUnknownOrderWasClosed() - Method in class de.voidnode.trading4j.server.protocol.expertadvisor.LocalExpertAdvisorTest
-
When a
PendingOrderConditionalyClosedMessage message was received for an unknown
PendingOrder a
ProtocolException should be thrown.
- shouldFailWhenUnknownOrderWasOpened() - Method in class de.voidnode.trading4j.server.protocol.expertadvisor.LocalExpertAdvisorTest
-
When a
PendingOrderConditionalyExecutedMessage message was received for an unknown
PendingOrder a
ProtocolException should be thrown.
- shouldFailWithAProtcolExceptionWhenUnexpectedMessageWasReceived() - Method in class de.voidnode.trading4j.server.protocol.expertadvisor.LocalExpertAdvisorTest
-
When the MessageBasedClientConnection read a message that was not expected to be read for the
ExpertAdvisorProtocol, a ProtocolException should be thrown.
- shouldInformAdminOfNormalyTerminatedConnections() - Method in class de.voidnode.trading4j.server.protocol.ExceptionHandlerTest
-
When the connection was terminated normally, the admin should be informed.
- shouldInformBalanceManagerOnChangedBalance() - Method in class de.voidnode.trading4j.server.protocol.expertadvisor.LocalExpertAdvisorTest
-
When a BalanceChangedMessage was received the expert advisor should be notified.
- shouldInformExpertAdvisorOnClosedPendingOrders() - Method in class de.voidnode.trading4j.server.protocol.expertadvisor.LocalExpertAdvisorTest
-
When a pending order was closed because it's closing conditions are met, the
ExpertAdvisor should be
notified.
- shouldInformExpertAdvisorOnNewMarketData() - Method in class de.voidnode.trading4j.server.protocol.expertadvisor.LocalExpertAdvisorTest
-
When a NewMarketDataExtendedMessage was received the expert advisor should be notified.
- shouldInformExpertAdvisorOnOpenedPendingOrders() - Method in class de.voidnode.trading4j.server.protocol.expertadvisor.LocalExpertAdvisorTest
-
When a pending order was opened the
ExpertAdvisor should be notified.
- shouldInformTheBalanceManagerOnAccountCurrencyExchangeRateChanged() - Method in class de.voidnode.trading4j.server.protocol.expertadvisor.LocalExpertAdvisorTest
-
When a AccountCurrencyExchangeRateChangedMessage was received the expert advisor should be notified.
- shouldInformTheExpertAdvisorWhenSendingAPendingOrderFailed() - Method in class de.voidnode.trading4j.server.protocol.expertadvisor.RemoteBrokerTest
-
When the expert advisor tried to send a pending order but the remote broker failed to place this order, the
expert advisor should be notified.
- shouldNotifyClientOfFinishedMessageHandling() - Method in class de.voidnode.trading4j.server.protocol.expertadvisor.ExpertAdvisorProtocolTest
-
After an incoming
Message was handled by the
LocalExpertAdvisor the cut should send an
EventHandlingFinishedMessage message to indicate to the remote
Broker that no more
Messages are send in response to the received one.
- shouldPassCommunicationExceptionsToExceptionHandler() - Method in class de.voidnode.trading4j.server.protocol.ClientCommunicatorTest
-
When the protocol execution ends with a CommunicationException it should be passed to the
ExceptionHandler for proper handling.
- shouldPassRuntimeExceptionToExceptionHandler() - Method in class de.voidnode.trading4j.server.protocol.ClientCommunicatorTest
-
When the protocol execution ends with a
RuntimeException it should be passed to the
ExceptionHandler for proper handling.
- shouldReadAccountCurrencyExchangeRateChangedMessageCorrectly() - Method in class de.voidnode.trading4j.server.protocol.messages.MessageBasedClientConnectionTest
-
The reader should be able to read AccountCurrencyExchangeRateChangedMessages correctly.
- shouldReadAlgorithmRequestMessages() - Method in class de.voidnode.trading4j.server.protocol.messages.MessageBasedClientConnectionTest
-
The class should be able to read RequestTradingAlgorithmMessages correctly.
- shouldReadBalanceChangedMessagesCorrectly() - Method in class de.voidnode.trading4j.server.protocol.messages.MessageBasedClientConnectionTest
-
The reader should be able to read BalanceChangedMessages correctly.
- shouldReadNewMarketDataExtendedMessages() - Method in class de.voidnode.trading4j.server.protocol.messages.MessageBasedClientConnectionTest
-
The class should be able to read NewMarketDataExtendedMessage correctly.
- shouldReadNewMarketDataSimpleMessages() - Method in class de.voidnode.trading4j.server.protocol.messages.MessageBasedClientConnectionTest
-
The class should be able to read NewMarketDataSimpleMessage correctly.
- shouldReadNextMessageAfterAReadMessageWasEvaluated() - Method in class de.voidnode.trading4j.server.protocol.expertadvisor.ExpertAdvisorProtocolTest
-
When a message was read and the appropriate actions executed, the next message should be read.
- shouldReadPendingOrderConditionalyClosedMessagesCorrectly() - Method in class de.voidnode.trading4j.server.protocol.messages.MessageBasedClientConnectionTest
-
The reader should be able to read PendingOrderConditionalyClosedMessage messages correctly.
- shouldReadPendingOrderConditionalyExecutedMessagesCorrectly() - Method in class de.voidnode.trading4j.server.protocol.messages.MessageBasedClientConnectionTest
-
The reader should be able to read PendingOrderConditionalyExecutedMessage messages correctly.
- shouldReadResponseChangeCloseConditionsMessagesCorrectly() - Method in class de.voidnode.trading4j.server.protocol.messages.MessageBasedClientConnectionTest
-
The reader should be able to read ResponseChangeCloseConditionsMessages correctly.
- shouldReadResponsePlacePendingOrderMessagesCorrectly() - Method in class de.voidnode.trading4j.server.protocol.messages.MessageBasedClientConnectionTest
-
The reader should be able to read ResponsePlacePendingOrderMessage messages correctly.
- shouldReadTradingEnvironmentMessagesCorreclty() - Method in class de.voidnode.trading4j.server.protocol.messages.MessageBasedClientConnectionTest
-
The reader should be able to read TradingEnvironmentInformationMessages correctly.
- shouldRecivedCandleSendItToIndicatorAndSendTheTrendBackToTheClient() - Method in class de.voidnode.trading4j.server.protocol.IndicatorProtocolTest
-
After indicator indicator initialization has finished, the protocol should receive a candle, send it to the
indicator and send the results of the indicator back to the client.
- shouldReciveNextCandleAfterTrendWasSend() - Method in class de.voidnode.trading4j.server.protocol.IndicatorProtocolTest
-
After the trend for a candle was send back to the client, the protocol should be waiting to receive the next
candle.
- shouldRegisterPendingOrderIdWithTheReceivedOrderEventListenerWhenSendingAPendingOrder() - Method in class de.voidnode.trading4j.server.protocol.expertadvisor.RemoteBrokerTest
-
- shouldRequestCorrectExpertAdvisorBasedOnTheAlgorithmNumber() - Method in class de.voidnode.trading4j.server.protocol.expertadvisor.ExpertAdvisorProtocolTest
-
When the protocol is started, the
LocalExpertAdvisor wrapping the correct
ExpertAdvisor should be
created through the
ProtocolFactory.
- shouldRequestCorrectIndicatorBasedOnTheIndicatorNumber() - Method in class de.voidnode.trading4j.server.protocol.IndicatorProtocolTest
-
The protocol should use the indicator factory to create the correct indicator for the given indicator number.
- shouldReturnAnEmptyOptionalWhenThePassedNumberIsNotAssignedToAnyMessag() - Method in class de.voidnode.trading4j.server.protocol.messages.MessageTypeTest
-
When the
MessageType is queried for the
MessageType with a number that is not assigned to any
MessageType an empty
Optional should be retuned.
- shouldReturnCorrectEnumConstantForMessagClass() - Method in class de.voidnode.trading4j.server.protocol.messages.MessageTypeTest
-
When a
Class implementing
Message is passed to
MessageType, the correct
Enum
constant should be returned.
- shouldReturnCorrectEnumConstantForMessageNumber() - Method in class de.voidnode.trading4j.server.protocol.messages.MessageTypeTest
-
When the MessageType is queried for the MessageType with a given number, the correct
MessageType should be returned.
- shouldSendBufferedDataWhenBufferIsFullEvenIfThereIsMoreToRead() - Method in class de.voidnode.trading4j.server.oio.OioClientConnectionIT
-
When the buffer is full it should be send, even if there is more to read.
- shouldSendDummyIndicatorDataWhenRequested() - Method in class de.voidnode.trading4j.server.TradingServerAT
-
When a client connects and request the dummy trend
Indicator, the server should send trends based on it.
- shouldSendOrdersBasedOnOrderOnEveryCandleStickWhenRequested() - Method in class de.voidnode.trading4j.server.TradingServerAT
-
When a client connects and requests the expert advisor that sends an order on every candle stick the server
should send pending orders on every candle stick.
- shouldSendPendingOrdersCorrectly() - Method in class de.voidnode.trading4j.server.protocol.expertadvisor.RemoteBrokerTest
-
- shouldSentCloseConditionChangesOfPendingOrdersCorrectly() - Method in class de.voidnode.trading4j.server.protocol.expertadvisor.RemoteBrokerTest
-
When the user changes the
CloseConditions of an order, the cut should send this request to the remote
broker correctly.
- shouldStoreOrderEventListenersAndMakeThemQueriableByTheirOrderId() - Method in class de.voidnode.trading4j.server.protocol.expertadvisor.PendingOrderMapperTest
-
- shouldThrowANormalCloseExceptionWhenTheClientClosedTheConnection() - Method in class de.voidnode.trading4j.server.oio.OioClientConnectionIT
-
When the client closed the connection, the next read or write should result in a NormalCloseException.
- shouldWarnAdminOfUnexpectetlyClosedConnections() - Method in class de.voidnode.trading4j.server.protocol.ExceptionHandlerTest
-
When the connection was terminated abnormally, the admin should be warned.
- shouldWriteChangeCloseConditionMessagesCorrectly() - Method in class de.voidnode.trading4j.server.protocol.messages.MessageBasedClientConnectionTest
-
The class should be able to write ChangeCloseConditionsMessage messages correctly.
- shouldWriteCloseOrCancelPendingOrderMessagesCorrectly() - Method in class de.voidnode.trading4j.server.protocol.messages.MessageBasedClientConnectionTest
-
The class should be able to write CloseOrCancelPendingOrderMessage messages correctly.
- shouldWriteEventHandlingFinishedMessagesCorrectly() - Method in class de.voidnode.trading4j.server.protocol.messages.MessageBasedClientConnectionTest
-
The class should be able to write EventHandlingFinishedMessage messages correctly.
- shouldWritePlacePendingOrderMessagesCorrectly() - Method in class de.voidnode.trading4j.server.protocol.messages.MessageBasedClientConnectionTest
-
The class should be able to write PlacePendingOrderMessage messages correctly.
- shouldWriteTrendForMarketDataMessages() - Method in class de.voidnode.trading4j.server.protocol.messages.MessageBasedClientConnectionTest
-
The class should be able to write TrendForMarketDataMessage correctly.
- shoulRemoveClosedPendingOrdersFromTheMapping() - Method in class de.voidnode.trading4j.server.protocol.expertadvisor.LocalExpertAdvisorTest
-
To prevent memory leaks, closed
PendingOrders should be removed from the order-to-id mapping.
- startServer() - Method in class de.voidnode.trading4j.server.TradingServerAT
-
Starts the trading server that should be tested.
- stopFailMailServer() - Method in class de.voidnode.trading4j.server.reporting.implementations.MailSenderIT
-
Shuts the test mail server down.
- stopServer() - Method in class de.voidnode.trading4j.server.TradingServerAT
-
Stops the trading server after the tests.