Package org.milyn.routing.jms

Examples of org.milyn.routing.jms.TestBean


  @Test
  public void createJMSMessage() throws ParserConfigurationException, JMSException, SAXException, IOException
  {
    final String beanId = "123";
    final TestBean bean = RouterTestHelper.createBean();
        MockExecutionContext executionContext = RouterTestHelper.createExecutionContext( beanId, bean );

        Message message = strategy.createJMSMessage( beanId, executionContext, jmsSession ) ;

        assertTrue ( message instanceof TextMessage );

        TextMessage textMessage = (TextMessage) message;
        assertEquals( bean.toString(), textMessage.getText() );

  }
View Full Code Here


  @Test
  public void createJMSMessage() throws ParserConfigurationException, JMSException, SAXException, IOException
  {
    final String beanId = "123";
    final TestBean bean = RouterTestHelper.createBean();
        MockExecutionContext executionContext = RouterTestHelper.createExecutionContext( beanId, bean );

        Message message = strategy.createJMSMessage( beanId, executionContext, jmsSession ) ;

        assertTrue ( message instanceof ObjectMessage );
View Full Code Here

  {
    final String name = "Daniel";
    final String address = "Fleminggatan";
    final String phoneNumber = "555-555-5555";

    final TestBean bean = new TestBean();
    bean.setAddress( address );
    bean.setName( name );
    bean.setPhoneNumber( phoneNumber );
    return bean;
  }
View Full Code Here

TOP

Related Classes of org.milyn.routing.jms.TestBean

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.