?????????r???????????У???????????mock???????mock??ut ??unit test???????????????????r??ut??????????????????mock??????????????ut?????????mock????????????????????????????mock??????????

?????.Mock????ó?????

???????????3?????

????1. mock??????????????HSF service??????????uic??tp ??hsf??????????

????2. ??DAO??????mysql??oracle??tair??tfs????洢???????mock???

????3. ????????????notify?????mock??

????4. ??method_A??????????method_B ??mock ??

????5. ???Щ???????????? class(abstract?? final?? static????interface??annotation ??enum??native???mock??

??????. Mock?????????

????mock????????????????£?

????1. record??Σ????????????????????????????Ρ???????????class ??interface??method ??????????????????????????

????2. replay??Σ????????????????в????????invoke ?? ??????record??mock?????????

????3. verify??Σ????????????????÷?????????????mock???????????????????

??????. ??????ЩMock????????

????????????????????е?Mock??????EasyMock??jMock??Mockito??Unitils Mock??PowerMock??jmockit??????

?????????????????£?

????????????????????????jmockit????????????????????UT?е?mock?????????????????????jmockit??

????????????????У??о???jmockit?? Auto-injection of mocks ?? Special fields for "any" argument matching  ??????????? Annotation ???????????????Ч???????????????????????