Use Whitebox.invokeConstructor(..) to create an instance of a class with a private constructor. mock建構函式. whenNew(MyClass.class).
確定! 回上一頁