You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2004/07/08 11:22:27 UTC

DO NOT REPLY [Bug 29970] New: - [PATCH] inserver junit testing

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29970>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29970

[PATCH] inserver junit testing

           Summary: [PATCH] inserver junit testing
           Product: Cocoon 2
           Version: Current CVS 2.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: general components
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: cthiele@ct42.de


This piece of code allows junit test in a normal server environment.
mockup objects for building up an test environment not needed anymore. Automated
testing of Cocoon components in a special servlet container like Weblogic should
be easier now.
Reporting is as for 'normal' JUnit tests.

There is a CocoonTestCase extending TestCase having the objectmodel and
servicemanager as member variables. This is the base class for testcases running
on serverside. And there is a TestCaseReader to be included in the sitemap. Its
for activating the testcases and sending back the results.

See the README in the uploaded tgz.