JMockit Eclipse Plugin

jopen 12年前發布 | 44K 次閱讀 JMockit Eclipse插件

這是 Eclipse 的插件用來支持 JMockit. 提供測試方法建議并執行靜態分析后報告 API 的濫用情況。

  1. Suggests methods to be mocked

    • Press Ctrl+Space inside a class extending MockUp or annotated with @MockClass. A list of mockable methods will appear.
  2. 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 missing getMockInstance() call
    • Mock method missing @Mock annotation
    • and others
  3. Automatically adds JMockit jar as -javaagent argument to JUnit launches. 

JMockit Eclipse Plugin

項目主頁:http://www.baiduhome.net/lib/view/home/1340756931733

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!