[jboss-jira] [JBoss JIRA] Created: (JBRULES-1319) debug junit test as drools application without requiring main function on junit test class
John Franey (JIRA)
jira-events at lists.jboss.org
Thu Nov 8 08:30:44 EST 2007
debug junit test as drools application without requiring main function on junit test class
------------------------------------------------------------------------------------------
Key: JBRULES-1319
URL: http://jira.jboss.com/jira/browse/JBRULES-1319
Project: JBoss Drools
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: Eclipse IDE
Affects Versions: 4.0.3
Environment: eclipse 3.3 x64, jrockit 6 x64, ubuntu linux 7.10 (gutsy gibbon)
Reporter: John Franey
Priority: Optional
It is not necessary to write main methods for junit test classes. Eclipse can run, debug or profile a 'main-less' junit test simply by right clicking on a junit test class in the package browser, selecting 'run as', 'debug as' or 'profile as' -> junit test. In general, main methods are not part of junit test classes. Even when run from command line, junit tests are not required to have main methods.
'Debug as drools application' is the only action in eclipse that lets me debug drools rules. 'Debug as drools application' is available only on java classes with main methods. Junit classes generally do not have main methods.
I would like to debug drools rules that a junit test is testing. In order to do so, I have to write a main method for the junit test case. Very easy to write, but I don't think it should be necessary.
Regards,
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list