1 |
|
package org.europa.together.application; |
2 |
|
|
3 |
|
import org.europa.together.JUnit5Preperator; |
4 |
|
import org.europa.together.business.DatabaseActions; |
5 |
|
import org.europa.together.business.Logger; |
6 |
|
import org.europa.together.business.PaginationTestDAO; |
7 |
|
import org.europa.together.domain.LogLevel; |
8 |
|
import org.europa.together.domain.PaginationTestDO; |
9 |
|
import org.junit.jupiter.api.AfterAll; |
10 |
|
import org.junit.jupiter.api.AfterEach; |
11 |
|
import org.junit.jupiter.api.Assumptions; |
12 |
|
import org.junit.jupiter.api.BeforeAll; |
13 |
|
import org.junit.jupiter.api.BeforeEach; |
14 |
|
import org.junit.jupiter.api.extension.ExtendWith; |
15 |
|
import org.springframework.stereotype.Repository; |
16 |
|
|
17 |
|
@Repository |
18 |
|
@ExtendWith({JUnit5Preperator.class}) |
|
|
| 25% |
Uncovered Elements: 6 (8) |
Complexity: 5 |
Complexity Density: 1.67 |
|
19 |
|
public class PaginationTestHbmDAO extends GenericHbmDAO<PaginationTestDO, String> |
20 |
|
implements PaginationTestDAO { |
21 |
|
|
22 |
|
private static final long serialVersionUID = 99999L; |
23 |
|
private static final Logger LOGGER |
24 |
|
= new LogbackLogger(PaginationTestHbmDAO.class); |
25 |
|
private static DatabaseActions jdbcActions |
26 |
|
= new JdbcActions(); |
27 |
|
|
28 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
29 |
0 |
@BeforeAll... |
30 |
|
static void setUp() { |
31 |
0 |
Assumptions.assumeTrue(jdbcActions.connect("test"), "JDBC DBMS Connection failed."); |
32 |
|
|
33 |
0 |
LOGGER.log("Assumptions passed ...\n\n", LogLevel.DEBUG); |
34 |
|
} |
35 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
36 |
0 |
@AfterAll... |
37 |
|
static void tearDown() { |
38 |
|
} |
39 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
40 |
0 |
@BeforeEach... |
41 |
|
void testCaseInitialization() { |
42 |
|
} |
43 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
44 |
0 |
@AfterEach... |
45 |
|
void testCaseTermination() { |
46 |
|
} |
47 |
|
|
48 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
49 |
1 |
public PaginationTestHbmDAO() {... |
50 |
1 |
super(); |
51 |
|
} |
52 |
|
} |