Class | Line # | Actions | |||||
---|---|---|---|---|---|---|---|
JsonProcessingExceptionTest | 10 | 4 | 0% | 1 | 0 |
1 | package org.europa.together.exceptions; | |
2 | ||
3 | import org.europa.together.JUnit5Preperator; | |
4 | import static org.junit.jupiter.api.Assertions.*; | |
5 | import org.junit.jupiter.api.Test; | |
6 | import org.junit.jupiter.api.extension.ExtendWith; | |
7 | ||
8 | @SuppressWarnings("unchecked") | |
9 | @ExtendWith({JUnit5Preperator.class}) | |
10 | public class JsonProcessingExceptionTest { | |
11 | ||
12 | 1 | ![]() |
13 | void exceptionObject() { | |
14 | 1 | JsonProcessingException ex_00 = new JsonProcessingException("DAO Exception"); |
15 | 1 | assertEquals("DAO Exception", ex_00.getMessage()); |
16 | ||
17 | 1 | JsonProcessingException ex = new JsonProcessingException(); |
18 | 1 | assertNull(ex.getMessage()); |
19 | } | |
20 | } |