1. Project Clover database Wed Jan 17 2024 23:40:18 CST
  2. Package org.europa.together.exceptions

File DAOExceptionTest.java

 

Code metrics

0
4
1
1
20
16
1
0.25
4
1
1

Classes

Class Line # Actions
DAOExceptionTest 10 4 0% 1 0
1.0100%
 

Contributing tests

This file is covered by 1 test. .

Source view

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 DAOExceptionTest {
11   
 
12  1 toggle @Test
13    void exceptionObject() {
14  1 DAOException ex_00 = new DAOException("DAO Exception");
15  1 assertEquals("DAO Exception", ex_00.getMessage());
16   
17  1 DAOException ex = new DAOException();
18  1 assertNull(ex.getMessage());
19    }
20    }