Skip to content

Commit 85025be

Browse files
committed
Fix test after dependency updates.
See #506
1 parent 41b3af6 commit 85025be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/org/springframework/data/keyvalue/repository/query/KeyValuePartTreeQueryUnitTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import org.junit.jupiter.api.extension.ExtendWith;
2727
import org.mockito.Mock;
2828
import org.mockito.junit.jupiter.MockitoExtension;
29-
3029
import org.springframework.data.domain.PageRequest;
3130
import org.springframework.data.domain.Pageable;
3231
import org.springframework.data.keyvalue.Person;
@@ -141,6 +140,7 @@ void shouldApplyDerivedMaxResultsToQueryWithParameters() throws SecurityExceptio
141140
void shouldUseCountForExists() throws NoSuchMethodException {
142141

143142
when(metadataMock.getDomainType()).thenReturn((Class) Person.class);
143+
when(metadataMock.getDomainTypeInformation()).thenReturn(ClassTypeInformation.from((Class) Person.class));
144144
when(metadataMock.getReturnType(any(Method.class)))
145145
.thenReturn((TypeInformation) ClassTypeInformation.from(Boolean.class));
146146
when(metadataMock.getReturnedDomainClass(any(Method.class))).thenReturn((Class) Boolean.class);

0 commit comments

Comments
 (0)