Skip to content

Commit 38070a1

Browse files
committed
Guard tests on newer JDK versions.
See #3031
1 parent 23ecf56 commit 38070a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/org/springframework/data/jpa/convert/QueryByExamplePredicateBuilderUnitTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ void setUp() {
128128

129129
doReturn(expressionMock).when(cb).literal(any(Boolean.class));
130130
doReturn(truePredicate).when(cb).isTrue(eq(expressionMock));
131-
doReturn(andPredicate).when(cb).and(ArgumentMatchers.any(Predicate.class));
132-
doReturn(orPredicate).when(cb).or(ArgumentMatchers.any(Predicate.class));
131+
doReturn(andPredicate).when(cb).and(ArgumentMatchers.any());
132+
doReturn(orPredicate).when(cb).or(ArgumentMatchers.any());
133133
}
134134

135135
@Test // DATAJPA-218

0 commit comments

Comments
 (0)