/** * 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); }
/** * 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); }
/** * Method tearDown. * * @throws java.lang.Exception */ @After public void tearDown() throws Exception { TradestrategyTest.clearDBData(); }