Skip to content

Add instrumentation and e2e tests for MongoCollection.findOneAndDelete - #1861

Merged
arcuri82 merged 6 commits into
masterfrom
mongo_findOneAndDelete
Oct 23, 2026
Merged

arcuri82 merged 6 commits into
masterfrom
mongo_findOneAndDelete

Conversation

@jgaleotti

Copy link
Copy Markdown
Collaborator

This PR introduces instrumentation for the family of methods MongoCollection.findOneAndDelete()

@jgaleotti
jgaleotti requested a review from arcuri82 October 9, 2026 01:21
@jgaleotti
jgaleotti added this pull request to stack #1863 October 9, 2026 01:33
# Conflicts:
#	client-java/instrumentation/src/main/java/org/evomaster/client/java/instrumentation/coverage/methodreplacement/thirdpartyclasses/MongoCollectionClassReplacement.java
…mongo_findOneAndDelete

# Conflicts:
#	client-java/instrumentation/src/test/java/org/evomaster/client/java/instrumentation/coverage/methodreplacement/thirdpartyclasses/MongoCollectionClassReplacementTest.java
…assReplacementTest`

- Implement test cases for `findOneAndDelete` with different configurations, including client sessions, filters, and options.
- Validate proper query execution, deletion behavior, and assertion of recorded commands.
- Handle edge cases such as invalid filters and non-matching conditions.
Base automatically changed from mongo_repository_e2e_test to master October 22, 2026 10:26
@arcuri82
arcuri82 merged commit e33f838 into master Oct 23, 2026
33 checks passed
@arcuri82
arcuri82 deleted the mongo_findOneAndDelete branch October 23, 2026 06:20
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