1 61 62 package org.jaxen; 63 64 65 import junit.framework.TestCase; 66 67 68 72 public class FunctionCallExceptionTest extends TestCase { 73 74 public FunctionCallExceptionTest(String name) { 75 super(name); 76 } 77 78 public void testMessageIsNonNull() { 79 80 JaxenException ex = new JaxenException("Hello"); 81 FunctionCallException rex = new FunctionCallException(ex); 82 assertEquals(ex.getMessage(), rex.getMessage()); 83 assertEquals(ex, rex.getCause()); 84 85 } 86 87 public void testMessageIsSaved() { 88 89 JaxenException ex = new JaxenException("Hello"); 90 FunctionCallException rex = new FunctionCallException("Goodbye", ex); 91 assertEquals("Goodbye", rex.getMessage()); 92 assertEquals(ex, rex.getCause()); 93 94 } 95 96 97 } 98 | Popular Tags |