Skip to content

chore: improve naming of the testing functionality#2084

Merged
triceo merged 2 commits intoTimefoldAI:mainfrom
triceo:tester
Feb 9, 2026
Merged

chore: improve naming of the testing functionality#2084
triceo merged 2 commits intoTimefoldAI:mainfrom
triceo:tester

Conversation

@triceo
Copy link
Collaborator

@triceo triceo commented Feb 6, 2026

  • Makes it obvious that this is intended for testing.
  • Avoids "empty" names like "evaluation".

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the naming of testing functionality in the preview API by renaming "MoveRunner/NeighborhoodEvaluator" to "MoveTester/NeighborhoodTester" to better reflect their purpose as testing utilities. The PR also upgrades the environment mode from PHASE_ASSERT to FULL_ASSERT for more comprehensive testing assertions.

Changes:

  • Renamed MoveRunner to MoveTester and MoveRunContext to MoveTestContext
  • Renamed NeighborhoodEvaluator to NeighborhoodTester and NeighborhoodEvaluationContext to NeighborhoodTestContext
  • Updated all implementation classes, tests, and documentation to use the new naming consistently

Reviewed changes

Copilot reviewed 31 out of 31 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
docs/src/modules/ROOT/pages/optimization-algorithms/neighborhoods.adoc Updated documentation to use new naming conventions (MoveTester, NeighborhoodTester) throughout
core/src/test/java/ai/timefold/solver/core/preview/api/neighborhood/NeighborhoodTesterTest.java Renamed test class and updated all references to use NeighborhoodTester
core/src/test/java/ai/timefold/solver/core/preview/api/move/builtin/*.java Updated all move-related tests to use MoveTester instead of MoveRunner
core/src/test/java/ai/timefold/solver/core/preview/api/move/MoveTesterTest.java Renamed test class from MoveRunnerTest to MoveTesterTest
core/src/test/java/ai/timefold/solver/core/impl/**/*.java Updated implementation tests to use new naming
core/src/main/java/ai/timefold/solver/core/preview/api/neighborhood/*.java Renamed API interfaces and updated documentation
core/src/main/java/ai/timefold/solver/core/preview/api/move/*.java Renamed API interfaces and updated documentation
core/src/main/java/ai/timefold/solver/core/impl/neighborhood/*.java Renamed implementation classes to match new API naming
core/src/main/java/ai/timefold/solver/core/impl/move/*.java Renamed implementation classes and upgraded to FULL_ASSERT mode

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 6, 2026

@triceo triceo merged commit 4cabb34 into TimefoldAI:main Feb 9, 2026
28 checks passed
@triceo triceo deleted the tester branch February 9, 2026 05:18
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.

3 participants