use of quickfix.MessageFactory in project camel by apache.
the class QuickfixjEngineTest method useExplicitComponentImplementations.
@Test
public void useExplicitComponentImplementations() throws Exception {
settings.setString(SLF4JLogFactory.SETTING_EVENT_CATEGORY, "Events");
settings.setString(sessionID, SessionFactory.SETTING_CONNECTION_TYPE, SessionFactory.INITIATOR_CONNECTION_TYPE);
writeSettings();
MessageStoreFactory messageStoreFactory = Mockito.mock(MessageStoreFactory.class);
LogFactory logFactory = Mockito.mock(LogFactory.class);
MessageFactory messageFactory = Mockito.mock(MessageFactory.class);
quickfixjEngine = new QuickfixjEngine("quickfix:test", settingsFile.getName(), messageStoreFactory, logFactory, messageFactory);
assertThat(quickfixjEngine.getMessageStoreFactory(), is(messageStoreFactory));
assertThat(quickfixjEngine.getLogFactory(), is(logFactory));
assertThat(quickfixjEngine.getMessageFactory(), is(messageFactory));
}
Aggregations