2015-12-13 13:58:39 +01:00
|
|
|
package com.iluwatar.front.controller;
|
|
|
|
|
2015-12-25 23:49:28 +02:00
|
|
|
import static org.junit.Assert.assertSame;
|
2015-12-13 13:58:39 +01:00
|
|
|
|
2015-12-25 23:49:28 +02:00
|
|
|
import org.junit.Test;
|
2015-12-13 13:58:39 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Date: 12/13/15 - 1:35 PM
|
|
|
|
*
|
|
|
|
* @author Jeroen Meulemeester
|
|
|
|
*/
|
|
|
|
public class ApplicationExceptionTest {
|
|
|
|
|
|
|
|
@Test
|
|
|
|
public void testCause() throws Exception {
|
|
|
|
final Exception cause = new Exception();
|
|
|
|
assertSame(cause, new ApplicationException(cause).getCause());
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|