3839404142434445464748
will(returnValue(trade)); oneOf(marketEvent).accept(with(any(Trade.class))); }}); h.onEvent(marketEvent, 1, true); } @Test public void shouldNotConsumeRateEvents() throws Exception { final String delimitedRate = "R|GBPUSD|1.6324";
5758596061626364
oneOf(tradeTranslator).canHandle(delimitedRate); will(returnValue(false)); }}); h.onEvent(marketEvent, 1, true); } }