gnodet opened a new pull request, #24279: URL: https://github.com/apache/camel/pull/24279
## Summary _Claude Code on behalf of forgebot_ - Add 8 new test files with **161 test methods** for the `camel-jbang-plugin-tui` module, bringing total test count from 11 to 172 - Widen 3 methods in `ShellPanel.java` from `private` to package-private to enable direct unit testing: `convertRow`, `encodeKeyEvent`, `convertAttrToStyle` - Covers the module's core utilities and parsers that previously had no test coverage ### New test files | File | Methods | What it tests | |------|---------|---------------| | `ShellPanelTest` | 28 | Terminal buffer→Line conversion, key event encoding, attribute→style mapping | | `StatusParserTest` | 23 | Integration/trace/message JSON parsing | | `MonitorContextTest` | 31 | Formatting helpers (since-last, load, memory, bytes, bar), style thresholds, string comparison | | `TuiHelperTest` | 27 | ANSI stripping/parsing, type name shortening, object-to-long conversion | | `CamelMonitorParseKeyTest` | 21 | Key string→KeyEvent parsing (chars, modifiers, special keys) | | `FuzzyFilterTest` | 14 | Fuzzy matching algorithm, highlight positions, filter state management | | `SearchHighlighterTest` | 12 | Search/highlight term application, find match navigation, escape handling | | `LoadAvgTest` | 5 | EWMA computation, formatting, steady-state convergence | ### Source change Only visibility change — no logic modified: ```java // ShellPanel.java — 3 methods: private static → static (package-private) static Line convertRow(long[] buf, int offset, int width) static byte[] encodeKeyEvent(KeyEvent ke) static Style convertAttrToStyle(long attr) ``` ## Test plan - [x] All 172 tests pass (`mvn test -pl dsl/camel-jbang/camel-jbang-plugin-tui`) - [x] Code formatted with `mvn formatter:format impsort:sort` (0 changes needed) - [ ] CI build passes 🤖 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]
