File tree 1 file changed +1
-1
lines changed
src/test/java/org/springframework/data/keyvalue/repository/query
1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change 26
26
import org .junit .jupiter .api .extension .ExtendWith ;
27
27
import org .mockito .Mock ;
28
28
import org .mockito .junit .jupiter .MockitoExtension ;
29
-
30
29
import org .springframework .data .domain .PageRequest ;
31
30
import org .springframework .data .domain .Pageable ;
32
31
import org .springframework .data .keyvalue .Person ;
@@ -141,6 +140,7 @@ void shouldApplyDerivedMaxResultsToQueryWithParameters() throws SecurityExceptio
141
140
void shouldUseCountForExists () throws NoSuchMethodException {
142
141
143
142
when (metadataMock .getDomainType ()).thenReturn ((Class ) Person .class );
143
+ when (metadataMock .getDomainTypeInformation ()).thenReturn (ClassTypeInformation .from ((Class ) Person .class ));
144
144
when (metadataMock .getReturnType (any (Method .class )))
145
145
.thenReturn ((TypeInformation ) ClassTypeInformation .from (Boolean .class ));
146
146
when (metadataMock .getReturnedDomainClass (any (Method .class ))).thenReturn ((Class ) Boolean .class );
You can’t perform that action at this time.
0 commit comments