struts-issues mailing list archives

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

     [ https://issues.apache.org/jira/browse/WW-3403?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Daniel Henry updated WW-3403:
-----------------------------

    Attachment: StrutsTestCase2.java
                XWorkTestCase2.java

These are the edited versions.

Only a few changes from Struts 2.1.8.1:

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
anymore.

> JUnit 4 StrutsTestCase
> ----------------------
>
>                 Key: WW-3403
>                 URL: https://issues.apache.org/jira/browse/WW-3403
>             Project: Struts 2
>          Issue Type: New Feature
>          Components: Unit Tests
>         Environment: any
>            Reporter: Daniel Henry
>            Priority: Minor
>         Attachments: StrutsTestCase2.java, XWorkTestCase2.java
>
>   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.


Mime
View raw message