You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2022/03/07 12:54:48 UTC
[camel] 03/23: CAMEL-15520: fixed deprecations in camel-web3j
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 314638f6ad1219f330fff283b87a87b5b4703c8f
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Mon Mar 7 10:51:07 2022 +0100
CAMEL-15520: fixed deprecations in camel-web3j
---
.../java/org/apache/camel/component/web3j/Web3jMockTestSupport.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/Web3jMockTestSupport.java b/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/Web3jMockTestSupport.java
index 237adda..31bc215 100755
--- a/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/Web3jMockTestSupport.java
+++ b/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/Web3jMockTestSupport.java
@@ -72,7 +72,8 @@ public class Web3jMockTestSupport extends CamelTestSupport {
@Override
@BeforeEach
public void setUp() throws Exception {
- MockitoAnnotations.initMocks(this);
- super.setUp();
+ try (AutoCloseable closeable = MockitoAnnotations.openMocks(this)) {
+ super.setUp();
+ }
}
}