Skip to content

refactor: migrate Xtend to Java - com.avaloq.tools.ddk.check.test.runtime.tests#1356

Merged
joaodinissf merged 1 commit into
dsldevkit:masterfrom
joaodinissf:xtend-check-run
May 21, 2026
Merged

refactor: migrate Xtend to Java - com.avaloq.tools.ddk.check.test.runtime.tests#1356
joaodinissf merged 1 commit into
dsldevkit:masterfrom
joaodinissf:xtend-check-run

Conversation

@joaodinissf
Copy link
Copy Markdown
Collaborator

@joaodinissf joaodinissf commented May 20, 2026

Summary

Migrate the last three .xtend test files in com.avaloq.tools.ddk.check.test.runtime.tests to Java 21; the module is now fully Java.

Notable swaps: Lists.newArrayListList.of; CollectionLiterals.newHashMap + Pair.ofMap.of; Exceptions.sneakyThrow → declared throws Exception. AbstractModule anonymous class kept for parity with the original.

Infrastructure cleanup: drop xtend.lib/xbase.lib from Require-Bundle, xtend-gen/ from build.properties and .classpath, xtextBuilder/xtextNature from .project, and the xtend-gen/ tree itself.

Test plan

  • mvn clean compile checkstyle:check pmd:check spotbugs:check → BUILD SUCCESS.
  • Tycho-surefire does not exercise this module's tests (packaging is eclipse-plugin, not eclipse-test-plugin — pre-existing).

🤖 Generated with Claude Code

…time.tests

Migrate the three remaining .xtend test files to idiomatic Java 21,
remove the module's Xtend infrastructure (MANIFEST.MF Require-Bundle,
build.properties source roots, .classpath xtend-gen entry, .project
xtextBuilder/xtextNature) and delete the now-empty xtend-gen/ tree.

The three tests preserve their original behaviour:
- CheckExecutionEnvironmentProjectTest: ParseHelper + ValidationTestHelper
  driving five validation assertions.
- CheckConfigurationIsAppliedTest: copies sources into the workspace,
  waits for the Xtext builder and asserts the configured severity.
- IssueLabelTest: end-to-end ICheckRuleLabelProvider label lookups using
  Guice with an empty AbstractModule binding the just-in-time defaults.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@joaodinissf joaodinissf requested a review from rubenporras May 20, 2026 16:04
@joaodinissf joaodinissf merged commit 16cae3a into dsldevkit:master May 21, 2026
4 checks passed
@joaodinissf joaodinissf deleted the xtend-check-run branch May 21, 2026 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants