Eclipse function/plugin that finds corresponding junit class?

前端 未结 4 1125
梦如初夏
梦如初夏 2021-01-11 16:34

I\'ve been searching high and low for an Eclipse feature that lets you right-click on a main source class and find the corresponding JUnit class(es), without me having to na

4条回答
  •  無奈伤痛
    2021-01-11 17:13

    The moreUnit plugin probably works for you.

    Capabilities (from its site):

    • Decorate classes which have a testcase.
    • Mark methods in the editor which are under test.
    • Jump to a testcase/testmethod in the editor via the menu or a shortcut.
    • Rename classes/methods and moreUnit will rename the corresponding testcode too.
    • Move classes and moreUnit will move the corresponding tests.
    • Generate a testmethod stub for the method under cursor-position in the editor via the menu or a shortcut.

提交回复
热议问题