Search in sources :

Example 1 with MessageFactory

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));
}
Also used : ScreenLogFactory(quickfix.ScreenLogFactory) LogFactory(quickfix.LogFactory) SLF4JLogFactory(quickfix.SLF4JLogFactory) JdbcLogFactory(quickfix.JdbcLogFactory) FileLogFactory(quickfix.FileLogFactory) MessageFactory(quickfix.MessageFactory) DefaultMessageFactory(quickfix.DefaultMessageFactory) MessageStoreFactory(quickfix.MessageStoreFactory) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 DefaultMessageFactory (quickfix.DefaultMessageFactory)1 FileLogFactory (quickfix.FileLogFactory)1 JdbcLogFactory (quickfix.JdbcLogFactory)1 LogFactory (quickfix.LogFactory)1 MessageFactory (quickfix.MessageFactory)1 MessageStoreFactory (quickfix.MessageStoreFactory)1 SLF4JLogFactory (quickfix.SLF4JLogFactory)1 ScreenLogFactory (quickfix.ScreenLogFactory)1