cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

Module JMX- Create JUnit Tests  Action - UI Specification

Authors: Alexandre Neubert, Thomas LevequeJean-Francois Denise

Create JUnit Tests Action

This action helps user in creating JUnit tests for a MBean.

This action results in creation of a new java file in one of the test package source. It is the same generation than in the MBean wizard.

The action is enabled for all MBean class.

Call the Action

Current module actions are located under Run menu. We could introduce a new Management menu if the set of actions requires it.
This ui spec defines a new Management menu. It could be replaced by a Management submenu under Tools.

  • From contextual menu :
    • The Create JUnit Test... action is called by right click on a MBean class in the project view.
    • Select Managementt submenu. Select the Create JUnit test... item.
  • From main menu :
    • Management menu  then select the Create JUnit test... item.

 

Scope of the action

This action should be accessible from any kind of project. 
This action is enabled only if the selected MBean has no generated JUnit tests.

Action Popup window

This popup windows has got the same look and feel than the last step in MBean wizard except the ComboBox which allows the user to specify the MBean constructor
 he wants to use in JUnit tests.



If the class to test represents a Dynamic MBean then the Default Method Bodies is disabled (We aren't be able to discover the MBean attributes and operations).


Specify a MBean Constructor

The user have to choose the MBean constructor, he wants to use in JUnit tests.



Companion
Projects:
MySQL Database Server   GlassFish Community: an Open Source Application Server   Open Solaris  Open JDK: an Open SourceJDK   Mobile & Embedded Community     Sponsored by 
Sponsored by Sun Microsystems