struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Bush (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (WW-5030) ClassNotFoundException - MockPortletResponse
Date Mon, 29 Apr 2019 00:47:00 GMT

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

John Bush updated WW-5030:
--------------------------
    Attachment: TestStrutsPortlet.zip

> ClassNotFoundException - MockPortletResponse
> --------------------------------------------
>
>                 Key: WW-5030
>                 URL: https://issues.apache.org/jira/browse/WW-5030
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Portlet
>    Affects Versions: 2.5.18
>            Reporter: John Bush
>            Priority: Major
>         Attachments: TestStrutsPortlet.zip, fail.txt, success.txt
>
>
> WW-3826 solved a problem running JUnit tests on portlet actions that use the struts2-portlet-plugin
and struts2-junit-plugin. The solution used Spring's org.springframework.mock.web.portlet
package in the spring-test framework. Spring Portlet MVC is no longer supported (SPR-14129)
and the package has been removed starting with Spring 5. I'm not able to upgrade to Spring
5 without loosing my unit testing since having both versions of spring-test in my classpath
creates many other issues.
> I've attached a zipped portlet project for testing (TestStrutsPortlet.zip), console log
from a successful test (TestStrutsPortlet.zip) and console log from a failed test (fail.txt).
All that needs to change is the spring-version in the POM to recreate the testing.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message