use of org.springframework.jms.StubTopic in project spring-framework by spring-projects.
the class DynamicDestinationResolverTests method resolveWithPubSubTopicSession.
@Test
public void resolveWithPubSubTopicSession() throws Exception {
Topic expectedDestination = new StubTopic();
TopicSession session = mock(TopicSession.class);
given(session.createTopic(DESTINATION_NAME)).willReturn(expectedDestination);
testResolveDestination(session, expectedDestination, true);
}
use of org.springframework.jms.StubTopic in project spring-framework by spring-projects.
the class DynamicDestinationResolverTests method resolveWithPubSubVanillaSession.
@Test
public void resolveWithPubSubVanillaSession() throws Exception {
Topic expectedDestination = new StubTopic();
Session session = mock(Session.class);
given(session.createTopic(DESTINATION_NAME)).willReturn(expectedDestination);
testResolveDestination(session, expectedDestination, true);
}
Aggregations