Package org.springframework.jms

Examples of org.springframework.jms.StubTopic


  private static final String DESTINATION_NAME = "foo";


  public void testResolveWithPubSubTopicSession() throws Exception {

    Topic expectedDestination = new StubTopic();

    MockControl mockSession = MockControl.createControl(TopicSession.class);
    TopicSession session = (TopicSession) mockSession.getMock();
    session.createTopic(DESTINATION_NAME);
    mockSession.setReturnValue(expectedDestination);
View Full Code Here


    mockSession.verify();
  }

  public void testResolveWithPubSubVanillaSession() throws Exception {

    Topic expectedDestination = new StubTopic();

    MockControl mockSession = MockControl.createControl(Session.class);
    Session session = (Session) mockSession.getMock();
    session.createTopic(DESTINATION_NAME);
    mockSession.setReturnValue(expectedDestination);
View Full Code Here

  private static final String DESTINATION_NAME = "foo";


  public void testResolveWithPubSubTopicSession() throws Exception {
    Topic expectedDestination = new StubTopic();
    TopicSession session = mock(TopicSession.class);
    given(session.createTopic(DESTINATION_NAME)).willReturn(expectedDestination);
    testResolveDestination(session, expectedDestination, true);
  }
View Full Code Here

    given(session.createTopic(DESTINATION_NAME)).willReturn(expectedDestination);
    testResolveDestination(session, expectedDestination, true);
  }

  public void testResolveWithPubSubVanillaSession() throws Exception {
    Topic expectedDestination = new StubTopic();
    Session session = mock(Session.class);
    given(session.createTopic(DESTINATION_NAME)).willReturn(expectedDestination);
    testResolveDestination(session, expectedDestination, true);
  }
View Full Code Here

TOP

Related Classes of org.springframework.jms.StubTopic

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.