Mocking Java InputStream

前端 未结 10 1694
既然无缘
既然无缘 2020-11-29 04:40

Please provide pointers to help me mock that java InputStream object. This is the line of code that I would wish to Mock:

InputStreamReader inputData = new I         


        
10条回答
  •  鱼传尺愫
    2020-11-29 05:08

    when(imageService.saveOrUpdate(Matchers.anyObject())).thenReturn(image);
    

    Reference http://www.javased.com/?api=org.mockito.Matchers

提交回复
热议问题