davsclaus commented on code in PR #26554:
URL: https://github.com/apache/camel/pull/26554#discussion_r4039092362


##########
dsl/camel-jbang/camel-jbang-plugin-tui/src/test/java/org/apache/camel/dsl/jbang/core/commands/tui/ActionsPopupTest.java:
##########
@@ -40,6 +40,8 @@ void 
menuLabelsResolveToActionsIgnoringCaseEllipsisAndShortcutHints() {
         assertEquals(ActionsPopup.Action.RUN_INFRA, 
ActionsPopup.actionForLabel("Run Dev/Infra Service..."));
         assertEquals(ActionsPopup.Action.TAPE_RECORDING, 
ActionsPopup.actionForLabel("Stop Tape Recording"));
         assertEquals(ActionsPopup.Action.SHOW_KEYSTROKES, 
ActionsPopup.actionForLabel("Hide Keystrokes"));
+        assertEquals(ActionsPopup.Action.QUIT, 
ActionsPopup.actionForLabel("Quit"));
+        assertEquals(ActionsPopup.Action.QUIT, 
ActionsPopup.actionForLabel("exit"));

Review Comment:
   Added in d716dc39858b: `quitIsTheLastMenuEntryAndRunsTheWiredAction` builds 
an `ActionsPopup`, checks Quit is the last label, that 
`executeActionByName("quit")` reports false with nothing wired, and that with a 
`Runnable` set both `quit` and the menu label `Quit` run it. The Enter path in 
`handleMenuKeys` shares the same `quitAction` field, so the wiring is covered 
once.
   
   _Claude Code on behalf of davsclaus_



-- 
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]

Reply via email to