This is an automated email from the ASF dual-hosted git repository.

lukaszlenart pushed a commit to branch WW-5640-webjars-support
in repository https://gitbox.apache.org/repos/asf/struts.git

commit dfc7e879d50100e4b063f9c2fa12a375a4d1776b
Author: Lukasz Lenart <[email protected]>
AuthorDate: Wed Jul 1 11:20:29 2026 +0200

    WW-5640 docs: correct plan test framework to JUnit 4
    
    core uses JUnit 4 + AssertJ + Mockito, not JUnit 5 Jupiter (no
    Jupiter engine on the classpath). Test tasks translate accordingly.
    
    Co-Authored-By: Claude Opus 4.8 <[email protected]>
---
 docs/superpowers/plans/2026-07-01-WW-5640-webjars-support.md | 1 +
 1 file changed, 1 insertion(+)

diff --git a/docs/superpowers/plans/2026-07-01-WW-5640-webjars-support.md 
b/docs/superpowers/plans/2026-07-01-WW-5640-webjars-support.md
index 29266000d..888197ae5 100644
--- a/docs/superpowers/plans/2026-07-01-WW-5640-webjars-support.md
+++ b/docs/superpowers/plans/2026-07-01-WW-5640-webjars-support.md
@@ -20,6 +20,7 @@
 - **Fail closed:** unresolved / disabled / allowlist-blocked / traversal → 404 
when serving, empty output when building URLs. Never fall through to arbitrary 
classpath serving.
 - **Package for new provider classes:** `org.apache.struts2.webjars`. 
Component/tag/model packages are fixed by convention (`components`, 
`views.jsp`, `views.freemarker.tags`).
 - **Config defaults:** `struts.webjars.enabled=true`, 
`struts.webjars.allowlist=` (empty = all). Reuse existing 
`struts.ui.staticContentPath`, `struts.serve.static`, 
`struts.serve.static.browserCache`.
+- **Test framework (CORRECTION, 2026-07-01):** the `core` module uses **JUnit 
4** (`org.junit.Test`, `@Before`) with **AssertJ** and **Mockito** — it has 
**no** JUnit 5 Jupiter engine on the classpath. The test code blocks in Tasks 
3/5/6/7 are written in Jupiter (`org.junit.jupiter.api.*`, `@BeforeEach`, 
`@Nested`) and MUST be translated to JUnit 4 idioms when implemented: 
`org.junit.Test` + `@Before`; no `@BeforeEach`/`@Nested`/`@DisplayName`. Keep 
AssertJ assertions and Mockito verbati [...]
 
 ## File Structure
 

Reply via email to