jesmith17 commented on code in PR #3467: URL: https://github.com/apache/logging-log4j2/pull/3467#discussion_r1958825090
########## log4j-mongodb4/src/main/java/org/apache/logging/log4j/mongodb4/MongoDb4Connection.java: ########## @@ -119,4 +121,12 @@ public String toString() { "Mongo4Connection [connectionString=%s, collection=%s, mongoClient=%s]", connectionString, collection, mongoClient); } + + /* + * This method is exposed to help support unit tests for the MongoDbProvider class. + * + */ + public MongoCollection<Document> getCollection() { Review Comment: Their is no way that i could identify through reflection to find this value. It seems to be a potential limitation to the MongoDB driver itself. but there isn't a way to get at this. I looked for all other options before adding this method. We can omit it, that means removing test cases as well. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@logging.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org