]
Kris Verlaenen resolved JBRULES-1319.
-------------------------------------
Resolution: Done
Added "Debug as Drools JUnit Test" action when right-clicking JUnit test class
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
Assigned To: Kris Verlaenen
Priority: Optional
Fix For: 5.0.0-M1
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: