1 |
|
package org.europa.together.domain; |
2 |
|
|
3 |
|
import static com.google.code.beanmatchers.BeanMatchers.*; |
4 |
|
import org.europa.together.JUnit5Preperator; |
5 |
|
import org.europa.together.application.LogbackLogger; |
6 |
|
import org.europa.together.business.Logger; |
7 |
|
import static org.hamcrest.MatcherAssert.assertThat; |
8 |
|
import org.junit.jupiter.api.Test; |
9 |
|
import org.junit.jupiter.api.extension.ExtendWith; |
10 |
|
|
11 |
|
@SuppressWarnings("unchecked") |
12 |
|
@ExtendWith({JUnit5Preperator.class}) |
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 1 |
Complexity Density: 0.25 |
|
13 |
|
public class JpaPaginationTest { |
14 |
|
|
15 |
|
private static final Logger LOGGER = new LogbackLogger(JpaPaginationTest.class); |
16 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
1PASS
|
|
17 |
1 |
@Test... |
18 |
|
void domainObject() { |
19 |
1 |
LOGGER.log("TEST CASE: domainObject", LogLevel.DEBUG); |
20 |
|
|
21 |
1 |
assertThat(JpaPagination.class, hasValidBeanConstructor()); |
22 |
1 |
assertThat(JpaPagination.class, hasValidBeanToStringExcluding("filterBooleanCriteria", |
23 |
|
"filterIntegerCriteria", |
24 |
|
"filterStringCriteria")); |
25 |
1 |
assertThat(JpaPagination.class, |
26 |
|
hasValidGettersAndSettersExcluding("filterBooleanCriteria", |
27 |
|
"filterIntegerCriteria", |
28 |
|
"filterStringCriteria")); |
29 |
|
} |
30 |
|
|
31 |
|
} |