Part of #224: Improve Thread Safety in Component and Container
Scope
Create targeted concurrency stress tests to validate thread safety fixes from the other sub-issues and prevent regressions.
Tests Needed
Approach
- Use
ExecutorService with multiple threads hammering shared components
- Run each scenario for N iterations (e.g., 10,000)
- Assert no exceptions, no deadlocks (timeout-based detection), consistent state
- Consider using JCStress or similar concurrency testing framework
Acceptance Criteria
Part of #224: Improve Thread Safety in Component and Container
Scope
Create targeted concurrency stress tests to validate thread safety fixes from the other sub-issues and prevent regressions.
Tests Needed
setParent()+repaint()on same ComponentContainer.add()+Container.remove()+repaint()setTerminalSize()+ rendering operationsdrawBorder()+ dimension changesmodificationCountvisibility under contentionApproach
ExecutorServicewith multiple threads hammering shared componentsAcceptance Criteria