1
我需要在PowerMockito中調用以下存根。在PowerMockito中調用鏈接方法
appAcceptedDoc.getAppointmentAccepted().getRequestResponse().getRequestersID().getStringValue()
我知道這是可以使用RETURNS_DEEP_STUBS在模擬時調用addional參數進行的Mockito做,但怎麼可以這樣使用PowerMockito做/,但似乎不接受作爲做的Mockito此相同的精氨酸。
AppointmentAcceptedDocument appAcceptedDoc = Mockito.mock(AppointmentAcceptedDocument.class, RETURNS_DEEP_STUBS); - Possible
AppointmentAcceptedDocument appAcceptedDoc = PowerMockito.mock(AppointmentAcceptedDocument.class, <?RETURNS_DEEP_STUBS?>); - Not possible