Skip to content

Phongsakon/develop#14

Merged
phomarkon merged 5 commits into
developfrom
phongsakon/develop
Jun 11, 2026
Merged

Phongsakon/develop#14
phomarkon merged 5 commits into
developfrom
phongsakon/develop

Conversation

@phomarkon

Copy link
Copy Markdown
Collaborator
  • Added JUnit 4 unit tests
  • Added JGiven BDD
  • Added CI workflow
  • Added test for align direction
  • Added CI for align dist

phomarkon and others added 5 commits May 31, 2026 11:52
Added JUnit 4 next to the existing TestNG so the lab's framework is in
place without disturbing the current tests. The tests cover the pure
geometry the refactoring exposed: 9 cases for Alignment, one per
direction plus the already-aligned and oversized-figure boundaries, and
6 for Distribution, the equal-gap best case plus the two and one figure
boundaries where it must do nothing. All 15 green.
Mapped the user story to Given-When-Then scenarios with JGiven and
AssertJ. One stage holds the steps, and the three scenarios cover the
story's promises: aligning north lines up the top edges, distributing
makes the gaps equal, and distributing two figures changes nothing.
GitHub Actions pipeline that builds all modules and runs the tests on
JDK 11 for every pull request. Named ci-align.yml so it does not clash
with the ci.yml a teammate added on another branch.
…stribute

Phongsakon/feature/test align distribute
@phomarkon phomarkon requested a review from timadam03 June 11, 2026 05:20
@phomarkon phomarkon self-assigned this Jun 11, 2026
@phomarkon phomarkon added enhancement New feature or request good first issue Good for newcomers refactoring labels Jun 11, 2026
@phomarkon phomarkon requested a review from AltanEsmer June 11, 2026 05:20
@phomarkon phomarkon merged commit f2b2495 into develop Jun 11, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request good first issue Good for newcomers refactoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant