I just want to know if there is a tool or a function on right click to generate automatically a jUnit class when we've created a basic java class ?
Because I think I've already done this... But I can not remember how.
IDE: Eclispe Mars.
Thanks !
I just want to know if there is a tool or a function on right click to generate automatically a jUnit class when we've created a basic java class ?
Because I think I've already done this... But I can not remember how.
IDE: Eclispe Mars.
Thanks !
Some Eclipse versions (I don't remember in which one I saw it) if you right click on the class name, it shows "Create JUnit test case for this class" in the context menu. But in some others it does not do that. You can a key short cut for it.
Head to Window --> Preferences --> General --> Keys and search for junit. Then you can easily add the shortcut you want to: