public class TradingServerAT extends Object
A test server is created by using the TestServer class. This test server provides some dummy indicators and
expert advisors. This test checks if they can be accessed over the network.
| Constructor and Description |
|---|
TradingServerAT() |
| Modifier and Type | Method and Description |
|---|---|
void |
shouldCloseTheConnectionWhenAnUnknownExpertAdvisorWasRequested()
When a client connects and requests an unknown expert advisor the server should terminate the connection.
|
void |
shouldCloseTheConnectionWhenAnUnknownIndicatorWasRequested()
When a client connects and requests an unknown indicator the server should terminate the connection.
|
void |
shouldSendDummyIndicatorDataWhenRequested()
When a client connects and request the dummy trend
Indicator, the server should send trends based on it. |
void |
shouldSendOrdersBasedOnOrderOnEveryCandleStickWhenRequested()
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.
|
void |
startServer()
Starts the trading server that should be tested.
|
void |
stopServer()
Stops the trading server after the tests.
|
public void startServer()
public void stopServer()
public void shouldSendDummyIndicatorDataWhenRequested()
throws IOException
Indicator, the server should send trends based on it.IOException - Not expected in the test.public void shouldSendOrdersBasedOnOrderOnEveryCandleStickWhenRequested()
throws IOException
IOException - Not expected in the test.public void shouldCloseTheConnectionWhenAnUnknownIndicatorWasRequested()
throws IOException
Indicators id range from 0 to 127
IOException - Not expected in the test.public void shouldCloseTheConnectionWhenAnUnknownExpertAdvisorWasRequested()
throws IOException
Indicators id range from 128 to 255
IOException - Not expected in the test.Copyright © 2016. All rights reserved.