You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Maurizio Cucchiara (JIRA)" <ji...@apache.org> on 2011/08/04 17:21:27 UTC

[jira] [Resolved] (WW-3667) StrutsJUnit4TestCase does not provide the executeAction method

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

Maurizio Cucchiara resolved WW-3667.
------------------------------------

    Resolution: Fixed

>From now it should be simpler running a test:
{code:title=YourActionIntegrationTest.java}
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"your-application-context.xml"})
public class YourActionIntegrationTest extends StrutsSpringJUnit4TestCase<YourAction> {
    @Test
    public void executeTest() throws Exception {
        String result = executeAction("/your-action");
        YourAction action = getAction();
        assertFalse(containsErrors());
    }

}
{code} 

> StrutsJUnit4TestCase does not provide the executeAction method
> --------------------------------------------------------------
>
>                 Key: WW-3667
>                 URL: https://issues.apache.org/jira/browse/WW-3667
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Unit Tests
>            Reporter: Maurizio Cucchiara
>            Assignee: Maurizio Cucchiara
>            Priority: Minor
>             Fix For: 2.3
>
>
> StrutsJUnit4TestCase does not provide the executeAction method as its predecessor did (StrutsTestCase). 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira