From b788603409a77d71cb5fe0549744cda7490280d4 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Mon, 22 May 2023 14:49:26 +0000 Subject: [PATCH] fix(deps): update dependency org.mongodb:mongo-java-driver to v2.14.3 Fixes https://github.com/apache/jmeter/pull/5865 --- src/bom-thirdparty/build.gradle.kts | 2 +- .../jmeter/protocol/mongodb/config/MongoSourceElement.java | 1 + .../java/org/apache/jmeter/protocol/mongodb/mongo/MongoDB.java | 1 + .../jmeter/protocol/mongodb/sampler/MongoScriptRunner.java | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bom-thirdparty/build.gradle.kts b/src/bom-thirdparty/build.gradle.kts index 1e01c95d6c1..1ab2ac6da07 100644 --- a/src/bom-thirdparty/build.gradle.kts +++ b/src/bom-thirdparty/build.gradle.kts @@ -132,7 +132,7 @@ dependencies { api("org.jodd:jodd-log:5.0.13") api("org.jodd:jodd-props:5.0.13") api("org.jsoup:jsoup:1.16.1") - api("org.mongodb:mongo-java-driver:2.11.3") + api("org.mongodb:mongo-java-driver:2.14.3") api("org.mozilla:rhino:1.7.14") api("org.neo4j.driver:neo4j-java-driver:4.4.12") api("org.slf4j:jcl-over-slf4j:1.7.36") diff --git a/src/protocol/mongodb/src/main/java/org/apache/jmeter/protocol/mongodb/config/MongoSourceElement.java b/src/protocol/mongodb/src/main/java/org/apache/jmeter/protocol/mongodb/config/MongoSourceElement.java index aaafddc28bc..c1bc55d1c9b 100644 --- a/src/protocol/mongodb/src/main/java/org/apache/jmeter/protocol/mongodb/config/MongoSourceElement.java +++ b/src/protocol/mongodb/src/main/java/org/apache/jmeter/protocol/mongodb/config/MongoSourceElement.java @@ -107,6 +107,7 @@ public boolean expectsModification() { } @Override + @SuppressWarnings("deprecation") public void testStarted() { if(log.isDebugEnabled()) { log.debug(getTitle() + " testStarted"); diff --git a/src/protocol/mongodb/src/main/java/org/apache/jmeter/protocol/mongodb/mongo/MongoDB.java b/src/protocol/mongodb/src/main/java/org/apache/jmeter/protocol/mongodb/mongo/MongoDB.java index 0447802a792..ceb918fce8b 100644 --- a/src/protocol/mongodb/src/main/java/org/apache/jmeter/protocol/mongodb/mongo/MongoDB.java +++ b/src/protocol/mongodb/src/main/java/org/apache/jmeter/protocol/mongodb/mongo/MongoDB.java @@ -43,6 +43,7 @@ public MongoDB( mongo = new MongoClient(serverAddresses, mongoOptions); } + @SuppressWarnings("deprecation") public DB getDB(String database, String username, String password) { if(log.isDebugEnabled()) { diff --git a/src/protocol/mongodb/src/main/java/org/apache/jmeter/protocol/mongodb/sampler/MongoScriptRunner.java b/src/protocol/mongodb/src/main/java/org/apache/jmeter/protocol/mongodb/sampler/MongoScriptRunner.java index 854c15321f9..73a730fca33 100644 --- a/src/protocol/mongodb/src/main/java/org/apache/jmeter/protocol/mongodb/sampler/MongoScriptRunner.java +++ b/src/protocol/mongodb/src/main/java/org/apache/jmeter/protocol/mongodb/sampler/MongoScriptRunner.java @@ -44,6 +44,7 @@ public MongoScriptRunner() { * @throws Exception * when evaluation on the database fails */ + @SuppressWarnings("deprecation") public Object evaluate(DB db, String script) throws Exception {