Registry / testing / struts2-junit-plugin

struts2-junit-plugin

JSON →
library7.1.1javamavenunverified

Provides JUnit testing support for Apache Struts 2 applications, enabling unit testing of actions and interceptors.

<dependency> <groupId>org.apache.struts</groupId> <artifactId>struts2-junit-plugin</artifactId> <version>7.1.1</version> </dependency>
INSTALL
IMPORT
SIG · STRUTS2-JUNIT-PLUG
S
struts2-junit-plugin
testingjavav7.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

StrutsTestCase
org.apache.struts2.junit.StrutsTestCase

Extends StrutsTestCase to test Struts 2 actions in a JUnit environment.

import org.apache.struts2.junit.StrutsTestCase; public class MyActionTest extends StrutsTestCase { public void testExecute() { executeAction("/myAction"); assertTrue(true); } }
Debug
Known issues
breakingStruts 2 has known security vulnerabilities in older versions; ensure you use the latest patched version.
fix
Upgrade to Struts 2.5.30 or later, or use version 7.x with proper security configurations.
affects: <7.0.0
Upgrade
Version history
7.1.1latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
struts2-junit-plugin — mvn dependency:get struts2-junit-plugin · libregistry