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.7%. Comparing base (d42e166) to head (3fe73b4).

Additional details and impacted files
@@                         Coverage Diff                         @@
##             feature/161-bounded-context-owner    #387   +/-   ##
===================================================================
  Coverage                                 91.7%   91.7%           
  Complexity                                2280    2280           
===================================================================
  Files                                      211     211           
  Lines                                     6027    6027           
  Branches                                   828     828           
===================================================================
  Hits                                      5532    5532           
  Misses                                     234     234           
  Partials                                   261     261           

☔ 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.

@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
@stefan-ka
stefan-ka force-pushed the feature/161-bounded-context-owner branch from 4b1752c to 4fd9ca5 Compare November 19, 2026 16:33
@stefan-ka
stefan-ka force-pushed the feature/381-standalone-usage-docs branch from 6892a3c to 85ab29e Compare November 19, 2026 16:33
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 85ab29e to 3fe73b4 Compare November 19, 2026 16:41
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