thenReturn(rk); // also tried: //whenNew(A.class).withParameterTypes(String.class). ... 你发布的代码适用于Mockito和Powermockito的最新版本。
確定! 回上一頁