@Test public void testEngineInitialisesSuccessfully() { PowerMock.replayAll(); final TradingEngine tradingEngine = new TradingEngine( exchangeConfigService, engineConfigService, strategyConfigService, marketConfigService, emailAlerter, tradingStrategiesBuilder); assertFalse(tradingEngine.isRunning()); PowerMock.verifyAll(); }
synchronized boolean isRunning() { LOG.info(() -> "isRunning: " + isRunning); return isRunning; }
TradingEngine { synchronized boolean isRunning() { LOG.info(() -> "isRunning: " + isRunning); return isRunning; } }
TradingEngine { synchronized boolean isRunning() { LOG.info(() -> "isRunning: " + isRunning); return isRunning; } @Autowired  TradingEngine(
      ExchangeConfigService exchangeConfigService,
      EngineConfigService engineConfigService,
      StrategyConfigService strategyConfigService,
      MarketConfigService marketConfigService,
      EmailAlerter emailAlerter,
      TradingStrategiesBuilder tradingStrategiesBuilder); }
TradingEngine { synchronized boolean isRunning() { LOG.info(() -> "isRunning: " + isRunning); return isRunning; } @Autowired  TradingEngine(
      ExchangeConfigService exchangeConfigService,
      EngineConfigService engineConfigService,
      StrategyConfigService strategyConfigService,
      MarketConfigService marketConfigService,
      EmailAlerter emailAlerter,
      TradingStrategiesBuilder tradingStrategiesBuilder); void start(); }
TradingEngine { synchronized boolean isRunning() { LOG.info(() -> "isRunning: " + isRunning); return isRunning; } @Autowired  TradingEngine(
      ExchangeConfigService exchangeConfigService,
      EngineConfigService engineConfigService,
      StrategyConfigService strategyConfigService,
      MarketConfigService marketConfigService,
      EmailAlerter emailAlerter,
      TradingStrategiesBuilder tradingStrategiesBuilder); void start();  }