/**
  * Method setUp.
  *
  * @throws java.lang.Exception
  */
 @Before
 public void setUp() throws Exception {
   TradeAppLoadConfig.loadAppProperties();
   tradePositionHome = new TradePositionHome();
   aspectHome = new AspectHome();
   this.tradestrategy = TradestrategyTest.getTestTradestrategy(symbol);
   assertNotNull(this.tradestrategy);
 }
예제 #2
0
 /**
  * Method setUp.
  *
  * @throws java.lang.Exception
  */
 @Before
 public void setUp() throws Exception {
   TradeAppLoadConfig.loadAppProperties();
   clientId = ConfigProperties.getPropAsInt("trade.tws.clientId");
   tradeOrderHome = new TradeOrderHome();
   this.tradePersistentModel =
       (PersistentModel)
           ClassFactory.getServiceForInterface(PersistentModel._persistentModel, this);
   this.tradestrategy = TradestrategyTest.getTestTradestrategy(symbol);
   assertNotNull(this.tradestrategy);
 }
예제 #3
0
 /**
  * Method tearDown.
  *
  * @throws java.lang.Exception
  */
 @After
 public void tearDown() throws Exception {
   TradestrategyTest.clearDBData();
 }