@@ -73,7 +73,7 @@ void shouldFetchMultipleItems() {
73
73
MockRepository mockRepository = mock (MockRepository .class );
74
74
Book book1 = new Book (42L , "Hitchhiker's Guide to the Galaxy" , "Douglas Adams" );
75
75
Book book2 = new Book (53L , "Breaking Bad" , "Heisenberg" );
76
- when (mockRepository .findAll ((Predicate ) null )).thenReturn (Arrays .asList (book1 , book2 ));
76
+ when (mockRepository .findAll (any (Predicate . class ) )).thenReturn (Arrays .asList (book1 , book2 ));
77
77
78
78
WebGraphQlHandler handler = initWebGraphQlHandler (builder -> builder
79
79
.dataFetcher ("books" , QuerydslDataFetcher .builder (mockRepository ).many ()));
@@ -169,7 +169,7 @@ void shouldReactivelyFetchMultipleItems() {
169
169
ReactiveMockRepository mockRepository = mock (ReactiveMockRepository .class );
170
170
Book book1 = new Book (42L , "Hitchhiker's Guide to the Galaxy" , "Douglas Adams" );
171
171
Book book2 = new Book (53L , "Breaking Bad" , "Heisenberg" );
172
- when (mockRepository .findAll ((Predicate ) null )).thenReturn (Flux .just (book1 , book2 ));
172
+ when (mockRepository .findAll ((Predicate ) any () )).thenReturn (Flux .just (book1 , book2 ));
173
173
174
174
WebGraphQlHandler handler = initWebGraphQlHandler (builder -> builder
175
175
.dataFetcher ("books" , QuerydslDataFetcher .builder (mockRepository ).many ()));
0 commit comments