From issues-return-33722-apmail-struts-issues-archive=struts.apache.org@struts.apache.org Sun Apr 5 05:48:04 2020 Return-Path: X-Original-To: apmail-struts-issues-archive@minotaur.apache.org Delivered-To: apmail-struts-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by minotaur.apache.org (Postfix) with SMTP id A59C518A8D for ; Sun, 5 Apr 2020 05:48:03 +0000 (UTC) Received: (qmail 53630 invoked by uid 500); 5 Apr 2020 05:48:02 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 53592 invoked by uid 500); 5 Apr 2020 05:48:02 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 53558 invoked by uid 99); 5 Apr 2020 05:48:02 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Apr 2020 05:48:02 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id DEA91E3141 for ; Sun, 5 Apr 2020 05:48:01 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id AB52278222D for ; Sun, 5 Apr 2020 05:48:00 +0000 (UTC) Date: Sun, 5 Apr 2020 05:48:00 +0000 (UTC) From: "ASF subversion and git services (Jira)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-5030) ClassNotFoundException - MockPortletResponse MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/WW-5030?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17075717#comment-17075717 ] ASF subversion and git services commented on WW-5030: ----------------------------------------------------- Commit 5003e093b9e5652a24acd3adcc84e51086908a15 in struts's branch refs/heads/action-context-boost from Lukasz Lenart [ https://gitbox.apache.org/repos/asf?p=struts.git;h=5003e09 ] Merge pull request #398 from JCgH4164838Gh792C124B5/WW-5030_Proposed_Change Proposed implementation to address WW-5030. > 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 > Fix For: 2.6 > > 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 (success.txt) 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 (v8.3.4#803005)