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