Skip to content

chore(spawn-local-platform): remove Mockito - #67

Merged
deer merged 1 commit into
mainfrom
remove_mockito
Sep 25, 2026
Merged

deer merged 1 commit into
mainfrom
remove_mockito

Conversation

@deer

@deer deer commented Sep 25, 2026

Copy link
Copy Markdown
Collaborator

MachineComplianceTests.shouldObserveApplicationCustomizerCallbacks was the only test in the project still depending on Mockito, using Mockito.mock(Customizer.class) plus Mockito.verify(...) to assert on lifecycle callback invocation counts. Since Customizer only needs simple invocation counting for this test, it's replaced with a real CountingCustomizer implementation backed by AtomicInteger fields, one per lifecycle callback.

With that usage gone, mockito-core and its byte-buddy transitive dependency are removed entirely from the root pom.xml dependencyManagement, along with the mockito.version and byte-buddy.version properties. The spawn-local-platform module's pom.xml drops its mockito-core test dependency and the maven-surefire-plugin override that wired -XX:+EnableDynamicAgentLoading -javaagent:${org.mockito:mockito-core:jar} into the argLine, since that agent is no longer needed.

@deer
deer merged commit bd17552 into main Sep 25, 2026
1 check passed
@deer
deer deleted the remove_mockito branch September 25, 2026 04:19
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