Merged
Conversation
Add JUnit 5 and MockK test dependencies with surefire plugin configuration. Add testPlugin hooks to PowerBlock and FluidBlock to enable unit testing without a running Minecraft server or Nexo plugin. Test coverage spans all 27 source files across 25 test files: - Power system: logic, registry, factory, data, persistence, listener, dialog, drill mining, network integration - Fluid system: logic, registry, factory, data, persistence, listener, dialog, network integration - Cross-system: power-to-fluid integration, complete pipeline tests - Plugin lifecycle, resource pack manager, Nexo integration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
testPlugincompanion object hooks toPowerBlockandFluidBlockto enable testing without a Minecraft server or Nexo pluginCoverage
Power system (11 test files): block logic (solar panel, battery, cable, drill), registry, factory, data serialization, persistence, listener events, dialog rendering, drill mining mechanics, network integration
Fluid system (10 test files): block logic (pump, pipe), registry, factory, data serialization, persistence, listener events, dialog rendering, network integration, FluidType enum
Plugin & cross-system (4 test files): Atlas plugin lifecycle, resource pack manager, Nexo integration, player join listener, power-to-fluid cross-system integration with complete pipeline tests
Production changes
PowerBlock.kt/FluidBlock.kt: Changedpluginfrom eagerly-initializedvalto computedget()property withtestPluginhook — no behavioral change at runtimepom.xml: Added test-scoped dependencies (JUnit 5, MockK) and surefire plugin