예제 #1
0
  public void testDestinationTopic() throws Exception {
    // prepare the mock
    Mock mock = new Mock(Topic.class);
    Topic topic = (Topic) mock.proxy();

    assertTrue(resolver.isTopic(topic));
    mock.verify();
  }
예제 #2
0
  public void testDestinationNotTopic() throws Exception {
    // prepare the mock
    Mock mock = new Mock(Queue.class);
    Queue queue = (Queue) mock.proxy();

    assertFalse(resolver.isTopic(queue));
    mock.verify();
  }
예제 #3
0
 public void testEndpointNotTopicNoFallback() throws Exception {
   UMOEndpoint endpoint = managementContext.getRegistry().lookupEndpoint("ep1");
   assertFalse(resolver.isTopic(endpoint));
 }
예제 #4
0
 public void testEndpointTopicFallbackNotUsed() throws Exception {
   UMOEndpoint endpoint = managementContext.getRegistry().lookupEndpoint("ep4");
   assertTrue(resolver.isTopic(endpoint, true));
 }
예제 #5
0
 public void testSameConnector() {
   assertSame(connector, resolver.getConnector());
 }