@@ -17,10 +17,10 @@ package org.springframework.data.jpa.convert.threeten;
|
||||
|
||||
import static org.assertj.core.api.Assertions.*;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
import jakarta.persistence.AttributeConverter;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.MethodSource;
|
||||
|
||||
@@ -40,7 +40,6 @@ class Jsr310JpaConvertersUnitTests {
|
||||
new Jsr310JpaConverters.ZoneIdConverter());
|
||||
}
|
||||
|
||||
|
||||
@ParameterizedTest
|
||||
@MethodSource("data")
|
||||
void convertersHandleNullValuesCorrectly(AttributeConverter<?, ?> converter) {
|
||||
|
||||
@@ -46,7 +46,7 @@ import org.mockito.quality.Strictness;
|
||||
* @author Mark Paluch
|
||||
* @author Daniel Shuy
|
||||
*/
|
||||
@SuppressWarnings("removal")
|
||||
@SuppressWarnings({ "unchecked", "deprecation", "removal" })
|
||||
@ExtendWith(MockitoExtension.class)
|
||||
@MockitoSettings(strictness = Strictness.LENIENT)
|
||||
class SpecificationUnitTests {
|
||||
@@ -55,7 +55,6 @@ class SpecificationUnitTests {
|
||||
@Mock(serializable = true) Root<Object> root;
|
||||
@Mock(serializable = true) CriteriaQuery<?> query;
|
||||
@Mock(serializable = true) CriteriaBuilder builder;
|
||||
|
||||
@Mock(serializable = true) Predicate predicate;
|
||||
|
||||
@BeforeEach
|
||||
@@ -163,7 +162,6 @@ class SpecificationUnitTests {
|
||||
|
||||
assertThat(specification).isNotNull();
|
||||
|
||||
@SuppressWarnings({ "unchecked", "deprecation" })
|
||||
Specification<Object> transferredSpecification = (Specification<Object>) deserialize(serialize(specification));
|
||||
|
||||
assertThat(transferredSpecification).isNotNull();
|
||||
@@ -178,7 +176,6 @@ class SpecificationUnitTests {
|
||||
|
||||
assertThat(specification).isNotNull();
|
||||
|
||||
@SuppressWarnings({ "unchecked", "deprecation" })
|
||||
Specification<Object> transferredSpecification = (Specification<Object>) deserialize(serialize(specification));
|
||||
|
||||
assertThat(transferredSpecification).isNotNull();
|
||||
@@ -191,7 +188,6 @@ class SpecificationUnitTests {
|
||||
Predicate secondPredicate = mock(Predicate.class);
|
||||
|
||||
Specification<Object> first = ((root1, query1, criteriaBuilder) -> firstPredicate);
|
||||
|
||||
Specification<Object> second = ((root1, query1, criteriaBuilder) -> secondPredicate);
|
||||
|
||||
first.and(second).toPredicate(root, query, builder);
|
||||
|
||||
Reference in New Issue
Block a user