How to resolve Unneccessary Stubbing exception

前端 未结 13 1358
无人共我
无人共我 2020-12-24 03:57

My Code is as below,

@RunWith(MockitoJUnitRunner.class)
public class MyClass {

    private static final String code =\"Test\";

    @Mock
     private MyCl         


        
相关标签:
13条回答
  • 2020-12-24 05:02

    If you use any() when mocking, you have to relpace @RunWith(MockitoJUnitRunner.class) with @RunWith(MockitoJUnitRunner.Silent.class).

    0 讨论(0)
提交回复
热议问题