Skip to content

Release 1.21.0#168

Merged
tastybento merged 18 commits into
masterfrom
develop
Apr 12, 2026
Merged

Release 1.21.0#168
tastybento merged 18 commits into
masterfrom
develop

Conversation

@tastybento
Copy link
Copy Markdown
Member

No description provided.

tastybento and others added 10 commits January 11, 2026 13:37
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace PowerMockRunner with MockitoExtension, PowerMockito.mockStatic
with Mockito.mockStatic (AutoCloseable), and Whitebox with reflection.
Update POM to Paper 1.21.11, Mockito 5.17, JUnit 5.12, and MockBukkit.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
New test files: EntityDamageByAcidEventTest, ItemDestroyByAcidEventTest,
AcidBiomeProviderTest, IslandAboutCommandTest. Augmented AcidEffectTest,
AcidTaskTest, and AcidIslandTest with additional branch/condition tests.
Total tests: 275 -> 314.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Converts all 19 locale files from legacy Bukkit & color codes to
Adventure MiniMessage tags (&1 → <dark_blue>, &c → <red>). Also fixes
several pre-existing bugs: full-width ampersand in ja.yml, broken
placeholder names in vi.yml ([tên]), hr.yml ([Ime]) and tr.yml ([isim])
standardised to [name], missing <red><3 in pl.yml, and a space in the
color code in tr.yml.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ations

Migrate locale files from legacy color codes to MiniMessage format
Updates api-version in addon.yml and bentobox.version in pom.xml to
3.12.0 to reflect the minimum BentoBox version required for MiniMessage
locale formatting.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
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

Release update aligning AcidIsland with newer platform/library versions and modernizing the test suite (JUnit 5 + Mockito static mocking), plus minor runtime and locale tweaks.

Changes:

  • Migrate unit tests from JUnit 4/PowerMock to JUnit 5 + Mockito (including new/additional tests).
  • Update build/dependencies for BentoBox 3.12.0 and add MockBukkit/JUnit5/Mockito-related configuration.
  • Adjust sign locale formatting (MiniMessage-style tags) and harden Essentials god-mode lookup against null user.

Reviewed changes

Copilot reviewed 36 out of 36 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/test/java/world/bentobox/acidisland/world/ChunkGeneratorWorldTest.java Migrates test to JUnit 5 + Mockito extension.
src/test/java/world/bentobox/acidisland/world/AcidTaskTest.java Migrates to JUnit 5, replaces PowerMock static mocking with Mockito, adds coverage.
src/test/java/world/bentobox/acidisland/world/AcidBiomeProviderTest.java Adds JUnit 5 coverage for biome selection.
src/test/java/world/bentobox/acidisland/mocks/ServerMocks.java Avoids reinitializing Bukkit singleton server across tests.
src/test/java/world/bentobox/acidisland/listeners/LavaCheckTest.java Migrates to JUnit 5 and Mockito static mocking with proper cleanup.
src/test/java/world/bentobox/acidisland/listeners/AcidEffectTest.java Migrates to JUnit 5, replaces PowerMock, adds coverage tests.
src/test/java/world/bentobox/acidisland/events/ItemDestroyByAcidEventTest.java Adds basic JUnit 5 coverage for event accessors/handlers.
src/test/java/world/bentobox/acidisland/events/EntityDamageByAcidEventTest.java Adds JUnit 5 coverage for cancellable damage event behavior.
src/test/java/world/bentobox/acidisland/events/AcidRainEventTest.java Migrates to JUnit 5 assertions/annotations.
src/test/java/world/bentobox/acidisland/events/AcidEventTest.java Migrates to JUnit 5 assertions/annotations.
src/test/java/world/bentobox/acidisland/commands/IslandAboutCommandTest.java Adds JUnit 5 coverage for command execution messaging.
src/test/java/world/bentobox/acidisland/AISettingsTest.java Migrates large settings test suite to JUnit 5.
src/test/java/world/bentobox/acidisland/AcidIslandTest.java Migrates to JUnit 5, replaces Whitebox/PowerMock with reflection + Mockito static mocks, adds coverage.
src/main/resources/locales/zh-CN.yml Updates sign formatting to MiniMessage-style tags.
src/main/resources/locales/vi.yml Updates sign formatting + placeholder normalization.
src/main/resources/locales/uk.yml Updates sign formatting to MiniMessage-style tags.
src/main/resources/locales/tr.yml Fixes sign lines + formatting tags.
src/main/resources/locales/ru.yml Updates sign formatting to MiniMessage-style tags.
src/main/resources/locales/ro.yml Updates sign formatting to MiniMessage-style tags.
src/main/resources/locales/pl.yml Updates sign formatting + restores missing line3 content.
src/main/resources/locales/lv.yml Updates sign formatting to MiniMessage-style tags.
src/main/resources/locales/ko.yml Updates sign formatting to MiniMessage-style tags.
src/main/resources/locales/ja.yml Fixes sign formatting and ordering.
src/main/resources/locales/it.yml Updates sign formatting to MiniMessage-style tags.
src/main/resources/locales/id.yml Updates sign formatting to MiniMessage-style tags.
src/main/resources/locales/hu.yml Updates sign formatting to MiniMessage-style tags.
src/main/resources/locales/hr.yml Updates sign formatting + placeholder normalization.
src/main/resources/locales/fr.yml Updates sign formatting to MiniMessage-style tags.
src/main/resources/locales/es.yml Updates sign formatting to MiniMessage-style tags.
src/main/resources/locales/en-US.yml Updates sign formatting to MiniMessage-style tags.
src/main/resources/locales/de.yml Updates sign formatting to MiniMessage-style tags.
src/main/resources/locales/cs.yml Updates sign formatting to MiniMessage-style tags.
src/main/resources/addon.yml Bumps addon api-version to 3.12.0.
src/main/java/world/bentobox/acidisland/listeners/AcidEffect.java Prevents NPE if Essentials returns null user.
pom.xml Updates dependency set (JUnit 5/Mockito/MockBukkit), bumps versions, adds jitpack repo.
CLAUDE.md Adds repo guidance file (but contains outdated testing info).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread CLAUDE.md Outdated
Comment thread pom.xml
Comment thread src/test/java/world/bentobox/acidisland/AcidIslandTest.java
tastybento and others added 8 commits April 8, 2026 02:42
- Switch from spigot-api to paper-api 1.21.11-R0.1-SNAPSHOT (provided)
- Add MockBukkit v1.21-SNAPSHOT for tests; delete ServerMocks utility class
- Exclude MockBukkit's JUnit 6 transitive deps to avoid version conflicts
- Migrate all 8 test classes to MockBukkit.mock()/unmock() pattern with
  explicit Bukkit::getMinecraftVersion stub (required by BentoBox 3.12.0)
- Remove clearInlineMocks() from @AfterEach (broke @BeforeAll mocks)
- Fix AcidEffectTest: remove uncompilable inner Att class; use mock(AttributeInstance)
- Fix AcidEffectTest: use null slot instead of new ItemStack(AIR) for partial armor
- Fix AcidTaskTest: expect any(Sound.class) not null for playSound assertion
- Fix AISettingsTest: use string literal instead of Flags.ANIMAL_NATURAL_SPAWN.getID()
- Update Maven plugin versions to match current best practice
All 314 tests pass (5 skipped, 0 failures, 0 errors)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Introduces a third overworld starter option themed around cherry
blossoms and 1.21 blocks. Features a hidden tuff-brick sanctum
accessed via a discoverable oak trapdoor, lit by a copper bulb, with
a crafter and decorated pot as secondary containers.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Publishes the AcidIsland JAR to Modrinth on GitHub release or manual
workflow_dispatch trigger. Requires MODRINTH_TOKEN and MODRINTH_PROJECT_ID
repository secrets.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@sonarqubecloud
Copy link
Copy Markdown

@tastybento tastybento merged commit d9adc9e into master Apr 12, 2026
3 of 6 checks 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