Files
cameleer-server/.planning/phases/02-transaction-search-diagrams/deferred-items.md

12 lines
1.1 KiB
Markdown
Raw Normal View History

# Deferred Items - Phase 02
## Pre-existing Issues
### ElkDiagramRendererTest breaks Spring context when run in full suite
- **Found during:** 02-01, Task 2
- **Issue:** When `ElkDiagramRendererTest` runs before Spring Boot integration tests in the same Surefire JVM, ELK's static initialization fails with `NoClassDefFoundError: org/eclipse/xtext/xbase/lib/CollectionLiterals`, which then prevents the Spring context from creating the `diagramRenderer` bean for all subsequent integration tests.
- **Impact:** Full `mvn test` for the app module shows 30 errors (all integration tests fail after ElkDiagramRendererTest runs)
- **Tests pass individually and in any grouping that excludes ElkDiagramRendererTest**
- **Root cause:** ELK 0.11.0's service loader initializes `LayeredMetaDataProvider` which uses xtext's `CollectionLiterals` in a static initializer. The class is present on the classpath (dependency resolves correctly) but fails in the Surefire fork's classloading order when combined with Spring Boot's fat classloader.
- **Suggested fix:** Configure Surefire to fork per test class, or defer ElkDiagramRendererTest to its own module/phase.