[jboss-jira] [JBoss JIRA] Updated: (JBRULES-1319) debug junit test as drools application without requiring main function on junit test class

Mark Proctor (JIRA) jira-events at lists.jboss.org
Wed Mar 12 00:16:58 EDT 2008


     [ http://jira.jboss.com/jira/browse/JBRULES-1319?page=all ]

Mark Proctor updated JBRULES-1319:
----------------------------------

    Fix Version/s: 5.0.0-M1
         Assignee: Kris Verlaenen

> 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: 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