Ejemplo n.º 1
0
 /**
  * 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());
 }
Ejemplo n.º 2
0
 /** 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());
 }
Ejemplo n.º 3
0
 /** 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());
 }
Ejemplo n.º 4
0
 /** Test method for {@link EvaluationException#EvaluationException()}. */
 @Test
 public void testEvaluationException() {
   EvaluationException exception = new EvaluationException();
   assertNull(exception.getMessage());
   assertNull(exception.getCause());
 }