@@ -297,18 +297,18 @@ void refreshesPipelineOnReadFailure(IOException ex) throws Exception {
297
297
// GIVEN
298
298
Pipeline pipeline = MockPipeline .createSingleNodePipeline ();
299
299
BlockLocationInfo blockLocationInfo = mock (BlockLocationInfo .class );
300
- doReturn (pipeline ).when (blockLocationInfo .getPipeline () );
300
+ doReturn (pipeline ).when (blockLocationInfo ) .getPipeline ();
301
301
Pipeline newPipeline = MockPipeline .createSingleNodePipeline ();
302
302
BlockLocationInfo newBlockLocationInfo = mock (BlockLocationInfo .class );
303
303
304
304
testRefreshesPipelineOnReadFailure (ex , blockLocationInfo ,
305
305
id -> newBlockLocationInfo );
306
306
307
- doReturn (newPipeline ).when (newBlockLocationInfo .getPipeline () );
307
+ doReturn (newPipeline ).when (newBlockLocationInfo ) .getPipeline ();
308
308
testRefreshesPipelineOnReadFailure (ex , blockLocationInfo ,
309
309
id -> blockLocationInfo );
310
310
311
- doReturn (null ).when (newBlockLocationInfo .getPipeline () );
311
+ doReturn (null ).when (newBlockLocationInfo ) .getPipeline ();
312
312
testRefreshesPipelineOnReadFailure (ex , blockLocationInfo ,
313
313
id -> newBlockLocationInfo );
314
314
}
@@ -359,7 +359,7 @@ private static ChunkInputStream throwingChunkInputStream(IOException ex,
359
359
if (succeedOnRetry ) {
360
360
stubbing .thenReturn (len );
361
361
}
362
- doReturn ((long ) len ).when (stream .getRemaining () );
362
+ doReturn ((long ) len ).when (stream ) .getRemaining ();
363
363
return stream ;
364
364
}
365
365
@@ -415,13 +415,13 @@ public void testRefreshOnReadFailureAfterUnbuffer(IOException ex)
415
415
XceiverClientFactory clientFactory = mock (XceiverClientFactory .class );
416
416
XceiverClientSpi client = mock (XceiverClientSpi .class );
417
417
BlockLocationInfo blockLocationInfo = mock (BlockLocationInfo .class );
418
- doReturn (client ).when (clientFactory .acquireClientForReadData (pipeline ) );
418
+ doReturn (client ).when (clientFactory ) .acquireClientForReadData (pipeline );
419
419
420
420
final int len = 200 ;
421
421
final ChunkInputStream stream = throwingChunkInputStream (ex , len , true );
422
422
423
- doReturn (blockLocationInfo ).when (refreshFunction .apply (blockID ) );
424
- doReturn (newPipeline ).when (blockLocationInfo .getPipeline () );
423
+ doReturn (blockLocationInfo ).when (refreshFunction ) .apply (blockID );
424
+ doReturn (newPipeline ).when (blockLocationInfo ) .getPipeline ();
425
425
426
426
OzoneClientConfig clientConfig = conf .getObject (OzoneClientConfig .class );
427
427
clientConfig .setChecksumVerify (false );
0 commit comments