davsclaus opened a new pull request, #27270:
URL: https://github.com/apache/camel/pull/27270

   [CAMEL-25261](https://issues.apache.org/jira/browse/CAMEL-25261)
   
   This resyncs the bundled examples with `mvn generate-resources 
-Psync-example-catalog` in camel-jbang-core, after 
[apache/camel-jbang-examples#94](https://github.com/apache/camel-jbang-examples/pull/94).
   
   ## What changes
   
   - **19 more bundled examples:** run (3), transform (6), route (4), 
fail-well/error-handling, connect (3), and contracts (2). Together with the 8 
already bundled, that makes 27. The whole ladder from quick-start to contracts 
now works offline in `camel run --example`, the TUI example browser and the MCP 
tools. Only Docker, API-key and network examples, plus 
`showcase/smart-log-analyzer` (23 MB), stay online.
   - **Updates to the examples already bundled:** they pick up the upstream 
edits since the 19 Sept sync, from the camel-jbang-examples #93 cleanup. For 
example, quick-start/routes' `Greeter` is now a plain class with `greet(name)`.
   - **Size:** the examples folder is about 199 KB of files in total, catalog 
included.
   - **Catalog fix:** the catalog no longer lists 
`fail-well/error-handling/parked/order-1003.json`. That was an output of a 
local run, and the old copy still listed it.
   
   ## Test fixtures
   
   `ExampleRoutesLoadTest` loads every bundled example's route file, and the 
loader instantiates beans while doing so. Its stub copies of the examples' Java 
beans in `src/test/java/camel/example` therefore follow the examples:
   - `Greeter` now has `setGreeting` (was `setMessage`);
   - `OrderNumber` is new, for `run/order-generator`.
   
   ## Tests
   
   `ExampleRoutesLoadTest` (all 56 route files of the 27 examples load and pass 
the canonical YAML schema check) and `ExampleHelperTest` pass.
   
   _Claude Code on behalf of davsclaus_
   
   🤖 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]

Reply via email to