Skip to content

Add JUnit 5 test suite (97 tests)#34

Merged
tastybento merged 1 commit intodevelopfrom
add-junit5-tests
Apr 2, 2026
Merged

Add JUnit 5 test suite (97 tests)#34
tastybento merged 1 commit intodevelopfrom
add-junit5-tests

Conversation

@tastybento
Copy link
Copy Markdown
Member

@tastybento tastybento commented Apr 2, 2026

Summary

  • Add complete JUnit 5 test suite with 97 tests covering all 11 source classes
  • Add test infrastructure: CommonTestSetup (shared BentoBox/Bukkit mocks), WhiteBox (reflection utility), TestWorldSettings (WorldSettings stub) — following the same patterns used in Border and AOneBlock addons
  • Add test dependencies: JUnit 5.10.2, Mockito 5.11.0, MockBukkit v1.21-SNAPSHOT
  • Update maven-surefire-plugin to 3.5.4 with -XX:+EnableDynamicAgentLoading for Java 21+
  • Update JaCoCo to 0.8.13 for Java 25 class file support
  • Add CLAUDE.md for Claude Code guidance

Test plan

  • mvn clean test — all 97 tests pass
  • CI build passes on GitHub Actions

🤖 Generated with Claude Code

- Add test dependencies: JUnit 5, Mockito 5, MockBukkit
- Add jitpack.io repo for MockBukkit snapshots
- Update surefire to 3.5.4 with Java 21 module opens
- Update JaCoCo to 0.8.13 for Java 25 class file support
- Add shared test infrastructure: CommonTestSetup, WhiteBox, TestWorldSettings
- Add tests for all 11 source classes including addon lifecycle,
  commands, manager DB operations, GUI generation, and utilities
- Add CLAUDE.md for Claude Code guidance

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 2, 2026

@tastybento tastybento merged commit 9b4efc5 into develop Apr 2, 2026
3 checks passed
@tastybento tastybento deleted the add-junit5-tests branch April 2, 2026 16:34
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.

1 participant