\r
public class JU_APIExceptionTest {\r
\r
- private static final String EXCEPTION_MESSAGE = "New API Exception for test";\r
+ private static final String EXCEPTION_MESSAGE = "New API Exception for test";\r
\r
- @Before\r
- public void setUp() throws Exception {\r
- }\r
+ @Before\r
+ public void setUp() throws Exception {\r
+ }\r
\r
- @Test\r
- public void testNewAPIExceptionWithMessage() {\r
- APIException exception = new APIException(EXCEPTION_MESSAGE);\r
+ @Test\r
+ public void testNewAPIExceptionWithMessage() {\r
+ APIException exception = new APIException(EXCEPTION_MESSAGE);\r
\r
- assertEquals(exception.getMessage(), EXCEPTION_MESSAGE);\r
- }\r
+ assertEquals(exception.getMessage(), EXCEPTION_MESSAGE);\r
+ }\r
\r
- @Test\r
- public void testNewAPIExceptionCreatedWithMessageAndThrowable() {\r
- Throwable throwable = new Throwable();\r
- APIException exception = new APIException(EXCEPTION_MESSAGE, throwable);\r
+ @Test\r
+ public void testNewAPIExceptionCreatedWithMessageAndThrowable() {\r
+ Throwable throwable = new Throwable();\r
+ APIException exception = new APIException(EXCEPTION_MESSAGE, throwable);\r
\r
- assertEquals(exception.getMessage(), EXCEPTION_MESSAGE);\r
- assertEquals(exception.getCause(), throwable);\r
- }\r
+ assertEquals(exception.getMessage(), EXCEPTION_MESSAGE);\r
+ assertEquals(exception.getCause(), throwable);\r
+ }\r
\r
- @Test\r
- public void testNewAPIExceptionCreatedWithThrowable() {\r
- Throwable throwable = new Throwable();\r
- APIException exception = new APIException(throwable);\r
+ @Test\r
+ public void testNewAPIExceptionCreatedWithThrowable() {\r
+ Throwable throwable = new Throwable();\r
+ APIException exception = new APIException(throwable);\r
\r
- assertEquals(exception.getCause(), throwable);\r
- }\r
+ assertEquals(exception.getCause(), throwable);\r
+ }\r
\r
- @Test\r
- public void testPayloadSetter() {\r
- Throwable throwable = new Throwable();\r
- Object payload = new Object();\r
+ @Test\r
+ public void testPayloadSetter() {\r
+ Throwable throwable = new Throwable();\r
+ Object payload = new Object();\r
\r
- APIException exception = new APIException(throwable);\r
+ APIException exception = new APIException(throwable);\r
\r
- exception.setPayload(payload);\r
+ exception.setPayload(payload);\r
\r
- assertEquals(exception.getPayload(), payload);\r
- }\r
+ assertEquals(exception.getPayload(), payload);\r
+ }\r
}\r