JMockit Eclipse Plugin
這是 Eclipse 的插件用來支持 JMockit. 提供測試方法建議并執行靜態分析后報告 API 的濫用情況。
-
Suggests methods to be mocked
- Press Ctrl+Space inside a class extending
MockUp
or annotated with@MockClass
. A list of mockable methods will appear.
- Press Ctrl+Space inside a class extending
-
Reports warnings as-you-type if mocking API is not used correctly
- No corresponding real method for mocked method
- Mock method calling itself but is not marked as 'reentrant'
MockUp
used with interface but missinggetMockInstance()
call- Mock method missing
@Mock
annotation - and others
-
Automatically adds JMockit jar as
-javaagent
argument to JUnit launches.
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!