gnodet opened a new pull request, #24332: URL: https://github.com/apache/camel/pull/24332
## Summary _Claude Code on behalf of Guillaume Nodet_ - Add 24 new test files with ~192 tests covering rendering behavior for all previously untested TUI tabs in `camel-jbang-plugin-tui` - Previously only 3 of 25 tabs had rendering tests (HealthTab, RoutesTab, ErrorsTab) — this brings coverage to all tabs - Also adds unit tests for helper classes: `TabRegistry`, `RecordingManager`, and `PopupManager` ### New tab rendering tests Each test file follows the established pattern from existing rendering tests using headless virtual terminal buffer rendering via `Frame.forTesting(Buffer)`: | Category | Tabs tested | |----------|-------------| | Simple table tabs | Endpoints, Consumers, Inflight, CircuitBreaker, Http, DataSource | | Non-table / medium | Beans, Configuration, Threads, Memory, Startup, Classpath | | Complex tabs | Overview, Spans, Metrics, Process, Log | | Interactive tabs | History, Diagram, SqlQuery, Browse | ### Helper class tests - `TabRegistryTest` — constant validation, sequential indices, uniqueness - `RecordingManagerTest` — state management, key label utility (23 tests) - `PopupManagerTest` — popup visibility state management ### Test patterns used - `bufferToString(Buffer)` for text content assertions (reuses `HealthTabRenderTest.bufferToString`) - `findCellWithColor(Buffer, String, Color)` for color assertions - Tests cover: table headers, data rows, colors, empty/no-selection states, sort cycling ## Test plan - [x] All 452 tests pass in `camel-jbang-plugin-tui` module (`mvn test -pl dsl/camel-jbang/camel-jbang-plugin-tui`) - [x] Code formatting verified (`mvn formatter:format impsort:sort` — no changes needed) - [x] Full build passes (`mvn clean install -Dquickly`) 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
