You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Ganapati (Jira)" <ji...@apache.org> on 2022/04/19 13:39:00 UTC

[jira] [Created] (WW-5177) Support for struts testing with JUnit

Ganapati created WW-5177:
----------------------------

             Summary: Support for struts testing with JUnit
                 Key: WW-5177
                 URL: https://issues.apache.org/jira/browse/WW-5177
             Project: Struts 2
          Issue Type: New Feature
          Components: Plugin - JUnit
            Reporter: Ganapati


Hi Team,

 

Currently, struts2-junit-plugin supports testing of Spring based struts actions with on JUnit 4 and 3 using {{StrutsSpringTestCase}} and {{{}StrutsSpringJUnit4TestCase{}}}. The request is to add support for JUnit 5 with something similar to {{StrutsSpringJUnit5TestCase. }}I understand that we can run JUnit 4 tests using {{junit-vintage-engine}} but in our case we need to combine with other JUnit 5 based extensions - some custom and some already available - Spring, Testcontainers, etc.

 

There is no issue in the current issues list to support this. Can I know if there is any plan to support the same? I am happy to make contribution if some one can guide me.

-----------------------------------

For POC purposes, I created parallels to {{{}XWorkJUnit4TestCase{}}}, {{{}StrutsJUnit4TestCase{}}}, and {{StrutsSpringJUnit4TestCase}} with much of the code remaining same. I was able to run tests using Spring's {{ExtendWith}} with a workaround and the workaround needs to be fixed properly.

 

Thanks.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)