?????????mock????ü?mock????jmockit???
???????????? ???????[ 2013/7/24 13:38:37 ] ????????
?????????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 ???????????????Ч???????????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11