Package org.jboss.soa.esb.addressing.eprs.JMSEpr

Examples of org.jboss.soa.esb.addressing.eprs.JMSEpr.AcknowledgeMode


  }
 
  @Test
  public void acknowledgeEnumTest()
  {
    AcknowledgeMode ackMode = AcknowledgeMode.getAckMode( null );
    assertEquals( AcknowledgeMode.AUTO_ACKNOWLEDGE, ackMode );
    assertEquals( Session.AUTO_ACKNOWLEDGE, ackMode.getAcknowledgeModeInt() );
   
    ackMode = AcknowledgeMode.getAckMode( "bajja" );
    assertEquals( Session.AUTO_ACKNOWLEDGE, ackMode.getAcknowledgeModeInt() );
   
    ackMode = AcknowledgeMode.getAckMode( "-100" );
    assertEquals( Session.AUTO_ACKNOWLEDGE, ackMode.getAcknowledgeModeInt() );
   
    ackMode = AcknowledgeMode.getAckMode( "CLIENT_ACKNOWLEDGE" );
    assertEquals( AcknowledgeMode.CLIENT_ACKNOWLEDGE, ackMode );
    assertEquals( Session.CLIENT_ACKNOWLEDGE, ackMode.getAcknowledgeModeInt() );
   
    ackMode = AcknowledgeMode.getAckMode( "DUPS_OK_ACKNOWLEDGE" );
    assertEquals( AcknowledgeMode.DUPS_OK_ACKNOWLEDGE, ackMode );
    assertEquals( Session.DUPS_OK_ACKNOWLEDGE, ackMode.getAcknowledgeModeInt() );
  }
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.addressing.eprs.JMSEpr.AcknowledgeMode

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.