Examples of supportsDirection()


Examples of org.mokai.persist.jdbc.MessageHandler.supportsDirection()

  }

  @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

Examples of org.mokai.persist.jdbc.sms.ConnectionsSmsHandler.supportsDirection()

    } catch (Exception e) {}
  }

  public void testSupportsOutboundDirection() throws Exception {
    ConnectionsSmsHandler handler = new ConnectionsSmsHandler();
    Assert.assertTrue(handler.supportsDirection(Direction.TO_CONNECTIONS));
    Assert.assertFalse(handler.supportsDirection(Direction.TO_APPLICATIONS));
    Assert.assertFalse(handler.supportsDirection(Direction.UNKNOWN));
    Assert.assertFalse(handler.supportsDirection(null));
  }
View Full Code Here

Examples of org.mokai.persist.jdbc.sms.ConnectionsSmsHandler.supportsDirection()

  }

  public void testSupportsOutboundDirection() throws Exception {
    ConnectionsSmsHandler handler = new ConnectionsSmsHandler();
    Assert.assertTrue(handler.supportsDirection(Direction.TO_CONNECTIONS));
    Assert.assertFalse(handler.supportsDirection(Direction.TO_APPLICATIONS));
    Assert.assertFalse(handler.supportsDirection(Direction.UNKNOWN));
    Assert.assertFalse(handler.supportsDirection(null));
  }

  @Test
View Full Code Here

Examples of org.mokai.persist.jdbc.sms.ConnectionsSmsHandler.supportsDirection()

  public void testSupportsOutboundDirection() throws Exception {
    ConnectionsSmsHandler handler = new ConnectionsSmsHandler();
    Assert.assertTrue(handler.supportsDirection(Direction.TO_CONNECTIONS));
    Assert.assertFalse(handler.supportsDirection(Direction.TO_APPLICATIONS));
    Assert.assertFalse(handler.supportsDirection(Direction.UNKNOWN));
    Assert.assertFalse(handler.supportsDirection(null));
  }

  @Test
  public void testInsertMessage() throws Exception {
View Full Code Here

Examples of org.mokai.persist.jdbc.sms.ConnectionsSmsHandler.supportsDirection()

  public void testSupportsOutboundDirection() throws Exception {
    ConnectionsSmsHandler handler = new ConnectionsSmsHandler();
    Assert.assertTrue(handler.supportsDirection(Direction.TO_CONNECTIONS));
    Assert.assertFalse(handler.supportsDirection(Direction.TO_APPLICATIONS));
    Assert.assertFalse(handler.supportsDirection(Direction.UNKNOWN));
    Assert.assertFalse(handler.supportsDirection(null));
  }

  @Test
  public void testInsertMessage() throws Exception {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.