Package org.springframework.jms

Examples of org.springframework.jms.JmsException


  public void testExceptionStackTrace() {
    JMSException jmsEx = new JMSException("could not connect");
    Exception innerEx = new Exception("host not found");
    jmsEx.setLinkedException(innerEx);
    JmsException springJmsEx = JmsUtils.convertJmsAccessException(jmsEx);
    StringWriter sw = new StringWriter();
    PrintWriter out = new PrintWriter(sw);
    springJmsEx.printStackTrace(out);
    String trace = sw.toString();
    assertTrue("inner jms exception not found", trace.indexOf("host not found") > 0);
  }
View Full Code Here


  @Test
  public void testExceptionStackTrace() {
    JMSException jmsEx = new JMSException("could not connect");
    Exception innerEx = new Exception("host not found");
    jmsEx.setLinkedException(innerEx);
    JmsException springJmsEx = JmsUtils.convertJmsAccessException(jmsEx);
    StringWriter sw = new StringWriter();
    PrintWriter out = new PrintWriter(sw);
    springJmsEx.printStackTrace(out);
    String trace = sw.toString();
    assertTrue("inner jms exception not found", trace.indexOf("host not found") > 0);
  }
View Full Code Here

TOP

Related Classes of org.springframework.jms.JmsException

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.