/** * Test method for {@link EvaluationException#EvaluationException(java.lang.String, * java.lang.Throwable)}. */ @Test public void testEvaluationExceptionStringThrowable() { Throwable cause = new Throwable(); EvaluationException exception = new EvaluationException("my message", cause); assertEquals("my message", exception.getMessage()); assertEquals(cause, exception.getCause()); }
/** Test method for {@link EvaluationException#EvaluationException(java.lang.Throwable)}. */ @Test public void testEvaluationExceptionThrowable() { Throwable cause = new Throwable(); EvaluationException exception = new EvaluationException(cause); assertEquals(cause.toString(), exception.getMessage()); assertEquals(cause, exception.getCause()); }
/** Test method for {@link EvaluationException#EvaluationException(java.lang.String)}. */ @Test public void testEvaluationExceptionString() { EvaluationException exception = new EvaluationException("my message"); assertEquals("my message", exception.getMessage()); assertNull(exception.getCause()); }
/** Test method for {@link EvaluationException#EvaluationException()}. */ @Test public void testEvaluationException() { EvaluationException exception = new EvaluationException(); assertNull(exception.getMessage()); assertNull(exception.getCause()); }