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(); }
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(); }
public void testEndpointNotTopicNoFallback() throws Exception { UMOEndpoint endpoint = managementContext.getRegistry().lookupEndpoint("ep1"); assertFalse(resolver.isTopic(endpoint)); }
public void testEndpointTopicFallbackNotUsed() throws Exception { UMOEndpoint endpoint = managementContext.getRegistry().lookupEndpoint("ep4"); assertTrue(resolver.isTopic(endpoint, true)); }
public void testSameConnector() { assertSame(connector, resolver.getConnector()); }