Package org.jboss.soa.esb.testutils

Examples of org.jboss.soa.esb.testutils.SerializableMockQueue


  }

  @Test
  public void process_with_JMSReplyTo() throws JMSException, IOException, URISyntaxException, MessageDeliverException {
    objectMsg.setObject( messageContent );
    MockQueue jmsReplyToQueue = new SerializableMockQueue( "/queue/mockReplyToQueueName");
    objectMsg.setJMSReplyTo( jmsReplyToQueue );

    Message message = packer.process( objectMsg );

    Destination replyTo = (Destination) message.getProperties().getProperty( JMSPropertiesSetter.JMS_REPLY_TO );
View Full Code Here


  @Test
  public void setPropertiesFromJMSMessageReplyTo() throws JMSException
  {
    final String destinationName = "/queue/testDest";
    final MockQueue queue = new SerializableMockQueue( destinationName );
    fromJMSTextMessage.setJMSReplyTo( queue );
    strategy.setPropertiesFromJMSMessage( fromJMSTextMessage , toESBMessage );

    final Object object = toESBMessage.getProperties().getProperty( JMSPropertiesSetter.JMS_REPLY_TO );
    assertNotNull( object );
View Full Code Here

  public void before() throws NamingException
  {
    MockContextFactory.setAsInitial();
    context = new InitialContext();
    MockContextFactory.setDelegateContext( context );
    queue = new SerializableMockQueue( destName );
    context.rebind( destName, queue );
  }
View Full Code Here

        {
            MockContextFactory.setAsInitial();
            Context context = new InitialContext();
            MockContextFactory.setDelegateContext( context );
       
            final MockQueue queue = new SerializableMockQueue( QUEUE_NAME );
       
            context.rebind( QUEUE_NAME, queue );

            // inbound is to simulate a jms message arriving at a gateway endpoint.
            TextMessageImpl inBoundJmsMessage = new TextMessageImpl();
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.testutils.SerializableMockQueue

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.