File tree 1 file changed +2
-2
lines changed
app/src/test/kotlin/fr/free/nrw/commons/category
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ class CategoryClientTest {
68
68
val mockResponse = Mockito .mock(MwQueryResponse ::class .java)
69
69
Mockito .`when `(mockResponse.query()).thenReturn(mwQueryResult)
70
70
71
- Mockito .`when `(categoryInterface!! .searchCategoriesForPrefix (ArgumentMatchers .anyString(), ArgumentMatchers .anyInt(), ArgumentMatchers .anyInt()))
71
+ Mockito .`when `(categoryInterface!! .searchCategories (ArgumentMatchers .anyString(), ArgumentMatchers .anyInt(), ArgumentMatchers .anyInt()))
72
72
.thenReturn(Observable .just(mockResponse))
73
73
74
74
val actualCategoryName = categoryClient!! .searchCategories(" tes" , 10 ).blockingFirst()
@@ -128,7 +128,7 @@ class CategoryClientTest {
128
128
val mockResponse = Mockito .mock(MwQueryResponse ::class .java)
129
129
Mockito .`when `(mockResponse.query()).thenReturn(mwQueryResult)
130
130
131
- Mockito .`when `(categoryInterface!! .getParentCategoryList (ArgumentMatchers .anyString()))
131
+ Mockito .`when `(categoryInterface!! .searchCategoriesForPrefix (ArgumentMatchers .anyString(), ArgumentMatchers .anyInt(), ArgumentMatchers .anyInt ()))
132
132
.thenReturn(Observable .just(mockResponse))
133
133
134
134
val actualCategoryName = categoryClient!! .searchCategoriesForPrefix(" tes" , 10 ).blockingFirst()
You can’t perform that action at this time.
0 commit comments