Excavator: Migrate Groovy nebula test IntegrationSpec to the new Java Junit framework
#1503
+2,801
−61
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.
excavator is a bot for automating changes across repositories.
Changes produced by the roomba/migrate-gradle-testing-junit-framework check.
🤖 🤖 This PR was created using Claude-code 🤖 🤖
Claude Execution Message
Claude finished running successfully.
Excellent! Everything compiles successfully. Now let me create a comprehensive summary of the migration:
Migration Complete!
I have successfully migrated the
IntegrationSpec.groovytest base class toIntegrationTest.java. Here's what was accomplished:Files Created/Modified:
New Test File:
src/test/java/com/palantir/gradle/versions/IntegrationTest.javasetup(),generateMavenRepo(), andrunTasksWithConfigurationCache()Modified Original:
src/test/groovy/com/palantir/gradle/versions/IntegrationSpec.groovyHTML Diff:
test-migration-notes/IntegrationTest.html(390 KB)Migration Notes:
test-migration-errors.mdSummary:
MIGRATION_SUMMARY.mdKey Migration Changes:
Framework Switch:
IntegrationTestKitSpec(Groovy + Spock)Major Technical Changes:
@TempDir Path projectDir(JUnit 5 managed)@BeforeEachand Java NIO for file operationsGradleRunner.create()instead of Nebula'screateRunner()assertto AssertJassertThat()Compilation Status:
✅ All code compiles successfully with no errors or warnings
Notes:
The HTML diff can be viewed at:
test-migration-notes/IntegrationTest.htmlClaude Code Metrics
To enable or disable this check, please contact the maintainers of Excavator.