@@ -134,7 +134,7 @@ class ToolRepositoryRemoteSpec extends Specification with Mockito with EitherMat
134134 " return the list of tools" in {
135135 val mockedClient = mock[ToolsClient ]
136136 val toolRepository =
137- new ToolRepositoryRemote (mockedClient, emptyStorage, null , _ => emptyStorage)
137+ new ToolRepositoryRemote (mockedClient, emptyStorage, null , null , _ => emptyStorage)
138138
139139 when(mockedClient.listTools(cursor = None )).thenReturn(
140140 toEitherT(ListToolsResponse .OK (ToolListResponse (Vector (toolA), None ))),
@@ -151,7 +151,7 @@ class ToolRepositoryRemoteSpec extends Specification with Mockito with EitherMat
151151 " return list with multiple tools" in {
152152 val mockedClient = mock[ToolsClient ]
153153 val toolRepository =
154- new ToolRepositoryRemote (mockedClient, emptyStorage, null , _ => emptyStorage)
154+ new ToolRepositoryRemote (mockedClient, emptyStorage, null , null , _ => emptyStorage)
155155
156156 val paginationInfo = PaginationInfo (Some (" cursor" ), Some (100 ), Some (1 ))
157157
@@ -175,7 +175,7 @@ class ToolRepositoryRemoteSpec extends Specification with Mockito with EitherMat
175175 " return list with stored tools" in {
176176 val mockedClient = mock[ToolsClient ]
177177 val toolRepository =
178- new ToolRepositoryRemote (mockedClient, mockToolsDataWithStorage, null , _ => emptyStorage)
178+ new ToolRepositoryRemote (mockedClient, mockToolsDataWithStorage, null , null , _ => emptyStorage)
179179
180180 mockedClient.listTools(cursor = None ).returns(toEitherT(ListToolsResponse .BadRequest (BadRequest (" error" ))))
181181
@@ -189,7 +189,7 @@ class ToolRepositoryRemoteSpec extends Specification with Mockito with EitherMat
189189 " throw an exception if API returns BadRequest" in {
190190 val mockedClient = mock[ToolsClient ]
191191 val toolRepository =
192- new ToolRepositoryRemote (mockedClient, emptyStorage, null , _ => emptyStorage)
192+ new ToolRepositoryRemote (mockedClient, emptyStorage, null , null , _ => emptyStorage)
193193
194194 mockedClient.listTools(cursor = None ).returns(toEitherT(ListToolsResponse .BadRequest (BadRequest (" error" ))))
195195
@@ -200,7 +200,7 @@ class ToolRepositoryRemoteSpec extends Specification with Mockito with EitherMat
200200 " throw an exception if API returns InternalServerError" in {
201201 val mockedClient = mock[ToolsClient ]
202202 val toolRepository =
203- new ToolRepositoryRemote (mockedClient, emptyStorage, null , _ => emptyStorage)
203+ new ToolRepositoryRemote (mockedClient, emptyStorage, null , null , _ => emptyStorage)
204204
205205 mockedClient
206206 .listTools(cursor = None )
@@ -215,7 +215,7 @@ class ToolRepositoryRemoteSpec extends Specification with Mockito with EitherMat
215215
216216 " return the list of tools" in {
217217 val mockedClient = mock[ToolsClient ]
218- val toolRepository = new ToolRepositoryRemote (mockedClient, null , emptyStorage, null )
218+ val toolRepository = new ToolRepositoryRemote (mockedClient, null , emptyStorage, null , null )
219219
220220 mockedClient
221221 .listDuplicationTools()
@@ -235,7 +235,7 @@ class ToolRepositoryRemoteSpec extends Specification with Mockito with EitherMat
235235 " return list with multiple tools" in {
236236 val mockedClient = mock[ToolsClient ]
237237 val toolRepository =
238- new ToolRepositoryRemote (mockedClient, emptyStorage, null , _ => emptyStorage)
238+ new ToolRepositoryRemote (mockedClient, emptyStorage, null , null , _ => emptyStorage)
239239
240240 val paginationInfo = PaginationInfo (Some (" cursor" ), Some (100 ), Some (1 ))
241241
@@ -262,7 +262,7 @@ class ToolRepositoryRemoteSpec extends Specification with Mockito with EitherMat
262262 " return the list of patterns from API" in {
263263 val mockedClient = mock[ToolsClient ]
264264 val toolRepository =
265- new ToolRepositoryRemote (mockedClient, emptyStorage, null , _ => emptyStorage)
265+ new ToolRepositoryRemote (mockedClient, emptyStorage, null , null , _ => emptyStorage)
266266
267267 when(mockedClient.listTools(cursor = None )).thenReturn(
268268 toEitherT(ListToolsResponse .OK (ToolListResponse (Vector (toolA), None ))),
@@ -288,7 +288,7 @@ class ToolRepositoryRemoteSpec extends Specification with Mockito with EitherMat
288288 " return list with multiple patterns from API" in {
289289 val mockedClient = mock[ToolsClient ]
290290 val toolRepository =
291- new ToolRepositoryRemote (mockedClient, emptyStorage, null , _ => emptyStorage)
291+ new ToolRepositoryRemote (mockedClient, emptyStorage, null , null , _ => emptyStorage)
292292
293293 val paginationInfo = PaginationInfo (Some (" cursor" ), Some (100 ), Some (1 ))
294294
@@ -318,7 +318,7 @@ class ToolRepositoryRemoteSpec extends Specification with Mockito with EitherMat
318318 " return list of patterns from storage" in {
319319 val mockedClient = mock[ToolsClient ]
320320 val toolRepository =
321- new ToolRepositoryRemote (mockedClient, mockToolsDataWithStorage, null , mockPatternDataWithStorage)
321+ new ToolRepositoryRemote (mockedClient, mockToolsDataWithStorage, null , null , mockPatternDataWithStorage)
322322
323323 mockedClient
324324 .listTools(cursor = None )
@@ -342,7 +342,7 @@ class ToolRepositoryRemoteSpec extends Specification with Mockito with EitherMat
342342 " return list of patterns first from storage" in {
343343 val mockedClient = mock[ToolsClient ]
344344 val toolRepository =
345- new ToolRepositoryRemote (mockedClient, mockToolsDataWithStorage, null , mockPatternDataWithStorage)
345+ new ToolRepositoryRemote (mockedClient, mockToolsDataWithStorage, null , null , mockPatternDataWithStorage)
346346
347347 mockedClient
348348 .listTools(cursor = None )
@@ -366,7 +366,7 @@ class ToolRepositoryRemoteSpec extends Specification with Mockito with EitherMat
366366 " throw an exception if API returns BadRequest" in {
367367 val mockedClient = mock[ToolsClient ]
368368 val toolRepository =
369- new ToolRepositoryRemote (mockedClient, emptyStorage, null , _ => emptyStorage)
369+ new ToolRepositoryRemote (mockedClient, emptyStorage, null , null , _ => emptyStorage)
370370
371371 mockedClient
372372 .listTools(cursor = None )
@@ -386,7 +386,7 @@ class ToolRepositoryRemoteSpec extends Specification with Mockito with EitherMat
386386
387387 " throw an exception if API returns NotFound" in {
388388 val mockedClient = mock[ToolsClient ]
389- val toolRepository = new ToolRepositoryRemote (mockedClient, emptyStorage, null , _ => emptyStorage)
389+ val toolRepository = new ToolRepositoryRemote (mockedClient, emptyStorage, null , null , _ => emptyStorage)
390390
391391 mockedClient
392392 .listTools(cursor = None )
@@ -407,7 +407,7 @@ class ToolRepositoryRemoteSpec extends Specification with Mockito with EitherMat
407407 " throw an exception if API returns InternalServerError" in {
408408 val mockedClient = mock[ToolsClient ]
409409 val toolRepository =
410- new ToolRepositoryRemote (mockedClient, emptyStorage, null , _ => emptyStorage)
410+ new ToolRepositoryRemote (mockedClient, emptyStorage, null , null , _ => emptyStorage)
411411
412412 mockedClient
413413 .listTools(cursor = None )
0 commit comments