Skip to content

Document reading CML models from code and tests (#381) - #387

Draft
stefan-ka wants to merge 2 commits into
feature/161-bounded-context-ownerfrom
feature/381-standalone-usage-docs
Draft

stefan-ka wants to merge 2 commits into
feature/161-bounded-context-ownerfrom
feature/381-standalone-usage-docs

Conversation

@stefan-ka

@stefan-ka stefan-ka commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Part of #381 (part 1, documentation of the standalone library; the issue stays open).

Stacked on #386; the base branch is feature/161-bounded-context-owner, so the diff only shows this change.

Changes

  • README: new section "Reading a CML Model in Your Code or Tests" with a snippet that loads a CML file and iterates over the context map relationships and their roles; supported Java versions.
  • Test StandaloneAPITest.canReadContextMapRelationships runs the same code against a small transit example, so the README snippet stays correct.

Java compatibility (verified)

Full Gradle build (./gradlew clean build, 802 tests) on this branch:

  • JDK 11: ✅
  • JDK 17: ✅ (also CI)
  • JDK 21: ✅ — Gradle 7.4.2 runs on it; the old Jacoco agent only logs warnings (Unsupported class file major version 65) when it tries to instrument JDK classes, tests are unaffected.

Still open in #381

  • Updating context-mapper-standalone-example to current versions.
  • Checking dependency conflicts in a Spring Boot 3 test classpath.
  • Part 2: documenting cross-context policies with existing CML constructs.

Docs: ContextMapper/contextmapper.github.io#108

@codecov

codecov Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.8%. Comparing base (4b1752c) to head (6892a3c).

Additional details and impacted files
@@                         Coverage Diff                         @@
##             feature/161-bounded-context-owner    #387   +/-   ##
===================================================================
  Coverage                                 91.8%   91.8%           
  Complexity                                2237    2237           
===================================================================
  Files                                      211     211           
  Lines                                     5956    5956           
  Branches                                   809     809           
===================================================================
  Hits                                      5472    5472           
  Misses                                     230     230           
  Partials                                   254     254           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Adds a README section with a snippet that loads a CML file and iterates
over the context map relationships, and states the supported Java
versions (builds and tests pass on JDK 11, 17 and 21). The snippet is
covered by a test in StandaloneAPITest.
@stefan-ka
stefan-ka force-pushed the feature/381-standalone-usage-docs branch from 2318bf8 to 6892a3c Compare October 20, 2026 21:55
@stefan-ka
stefan-ka force-pushed the feature/161-bounded-context-owner branch from 628a2fe to 4b1752c Compare October 20, 2026 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant