struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Henry (JIRA)" <>
Subject [jira] Updated: (WW-3403) JUnit 4 StrutsTestCase
Date Tue, 09 Mar 2010 17:51:27 GMT


Daniel Henry updated WW-3403:


These are the edited versions.

Only a few changes from Struts

XWorkTestCase no longer extends TestCase 

setUp and tearDown methods now public, not protected

@Before annotation for setUp methods

@After annotation for tearDown methods

Note: these should probably be called something else since they are not actually TestCase's

> JUnit 4 StrutsTestCase
> ----------------------
>                 Key: WW-3403
>                 URL:
>             Project: Struts 2
>          Issue Type: New Feature
>          Components: Unit Tests
>         Environment: any
>            Reporter: Daniel Henry
>            Priority: Minor
>         Attachments:,
>   Original Estimate: 0.25h
>  Remaining Estimate: 0.25h
> I modified the XWorkTestCase and StrutsTestCase to be compatible with JUnit 4.  The update
is simple : XWorkTestCase no longer extends TestCase and change the setUp and tearDown methods
from protected to public.  Also add @Before to setUp methods and @After to tearDown. This
has worked out well for us and would like to contribute back.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message