摘要:
new Expectations(XXStatic.class){ { Deencapsulation.setField(XXStatic.class,"fieldName","mockValue"); } } Deencapsulation.setField(XXStatic.class,"fie 阅读全文
摘要:
new Expectations(){{ calendarService.getGeneralCalendar((Date)any); returns(null, new AbrahamResult<HolidayCalendar>() {{setSuccess(false);}}, new Abr 阅读全文