?????????mock????ü?mock????jmockit???
???????????? ???????[ 2013/7/24 13:38:37 ] ????????
??????. Jmockit???飺
????JMockit ??????????????????д??????????鶴???API??????https??//code.google.com/p/jmockit/????????? Java 5 SE ?? java.lang.instrument ?????????????? ASM ???????Java??Bytecode?????????????instrument????????????????????????????????
????Jmockit????mock????????????1.class(abstract?? final?? static) ??2.interface ??3.enum ??4.annotation ??5.native ??
????Jmockit ??????mock??????
????1. Behavior-oriented(Expectations & Verifications) ??
????2. State-oriented(MockUp<GenericType>) ??
??????????Behavior-oriented??????????mock????mock????????????????£??????в????State-oriented ?????????mock?????????????????????????????????????м?顢?????????Щ??????????С???State-oriented?? new MockUp?????????mock?κδ???????????????
??????????jmockit??APIs??tools??
???????????jmockit?????Expectation??NonStrictExpectations ??????? ??Annotation @Tested??@Mocked??@NonStrict??@Injectable ?????mock??????????jmockit ???????code coverage??????????UT????????????????????á?
??????.Jmockit???????
??????????????jmockit??jar??????
??????refund????????????У???????????pom??????jmockit??jar???????????????jmockit?????code coverage??jar??
????????????????????Jmockit???????
??????
???·???
??????????????????
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