Package org.jaxen

Examples of org.jaxen.JaxenRuntimeException.printStackTrace()


    public void testPrintStackTrace() {
        JaxenException cause = new JaxenException("1234");
        JaxenRuntimeException ex = new JaxenRuntimeException(cause);
        StringWriter out = new StringWriter();
        PrintWriter pw = new PrintWriter(out);
        ex.printStackTrace(pw);
        pw.close();
        assertTrue(out.toString().indexOf("Caused by: org.jaxen.JaxenException") > 0);
        assertTrue(out.toString().indexOf("1234") > 0);
    }
   
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.