Package org.mokai.persist.jdbc

Examples of org.mokai.persist.jdbc.MessageHandler


    verify(handler).listMessages(any(Connection.class), any(MessageCriteria.class));
  }

  @Test
  public void testListWithNotSupportedDirectionCriteria() throws Exception {
    MessageHandler handler = mock(MessageHandler.class);
    when(handler.supportsDirection(any(Direction.class))).thenReturn(false);

    DataSource dataSource = mockDataSource();
    JdbcMessageStore messageStore = createMessageStore(dataSource, handler);

    MessageCriteria criteria = new MessageCriteria()
View Full Code Here


    return messageStore;
  }

  private JdbcMessageStore createMessageStoreNoDataSource() {
    MessageHandler handler = mock(MessageHandler.class);
    JdbcMessageStore messageStore = new JdbcMessageStore();
    messageStore.setMessageHandler(handler);

    return messageStore;
  }
View Full Code Here

TOP

Related Classes of org.mokai.persist.jdbc.MessageHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.