[
https://issues.apache.org/jira/browse/WW-3403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12909149#action_12909149
]
James Gadbury commented on WW-3403:
-----------------------------------
Hi,
Any news on this change? I too would like to use StrutsTestCase with Junit 4.
I had a look at the XWorkTestCase in xwork-core 2.2.1 and StrutsTestCase in
struts2-junit-plugin 2.2.1. Seems StrutsTestCase still extends XWorkTestCase,
which itself extends TestCase.
Kind regards,
James
> 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.