Skip to content

Add applyTeacherTests() to SorterConfiguration (1.2.0) - #4

Merged
Bonajo merged 3 commits into
mainfrom
feature/apply-teacher-tests
Sep 23, 2026
Merged

Bonajo merged 3 commits into
mainfrom
feature/apply-teacher-tests

Conversation

@Bonajo

@Bonajo Bonajo commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Changes

  • SorterConfiguration.applyTeacherTests(): a new default method that returns true. The teacher tests use it to decide which configurations they test.
  • streamSorterConfigurations() is now documented as returning all configured sorters. Students' own tests use this stream. Before, switching a sorter's teacher-test flag off also removed it from their own tests, so coverage dropped and the teacher tests never ran.
  • Fixed the Javadoc of SortingServiceFactory, and changed "appointment planner" to "sorting" in the README.
  • Version 1.2.0.
  • Parent pom informaticspom 1.7 → 1.8. ⚠️ This raises java.release from 21 to 25, so projects using this API need JDK 25.

After merging

Create GitHub release v1.2.0. This triggers deploy.yml, which publishes to Maven Central.

Copilot AI lite review requested due to automatic review settings September 23, 2026 17:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The only noted issue is a minor README wording nit and does not block approval.

Review effort: Lite
Findings: 1 Low severity

Open (1)
What changed in this PR

Adds teacher-test selection to SorterConfiguration, clarifies documentation, updates README terminology, and bumps the project to version 1.2.0.

Changes:

  • Adds applyTeacherTests() with a default value of true.
  • Documents that all sorter configurations are available to student tests.
  • Updates README wording and dependency versions.
  • Raises the required Java release to 25.
File Description
src/​main/​java/​sortingservice/​SortingServiceFactory.java Clarifies sorter configuration stream documentation.
src/​main/​java/​sortingservice/​SorterConfiguration.java Adds teacher-test selection support.
README.md Updates exercise terminology; contains a minor duplicated-word nit.
pom.xml Bumps project and parent versions.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread README.md Outdated
streamSorterConfigurations() now returns all configured sorters, so
students can test every sorter in their own tests. The teacher tests
filter on applyTeacherTests() instead. Bumps the version to 1.2.0.
@Bonajo
Bonajo force-pushed the feature/apply-teacher-tests branch from fff5c69 to 93020e0 Compare September 23, 2026 17:34
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@Bonajo
Bonajo merged commit 023a7e3 into main Sep 23, 2026
1 check passed
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