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 00751d016fe46fe6ca93ac1a340cc3a3feca74b6 Author: Otavio Rodolfo Piske <angusyo...@gmail.com> AuthorDate: Wed Jun 12 08:59:07 2024 +0200 CAMEL-20838: do not use overrides when JUnit's annotations suffice (camel-mongodb) --- .../mongodb/gridfs/integration/AbstractMongoDbITSupport.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/camel-mongodb-gridfs/src/test/java/org/apache/camel/component/mongodb/gridfs/integration/AbstractMongoDbITSupport.java b/components/camel-mongodb-gridfs/src/test/java/org/apache/camel/component/mongodb/gridfs/integration/AbstractMongoDbITSupport.java index 38f9efad13a..1855ba1029a 100644 --- a/components/camel-mongodb-gridfs/src/test/java/org/apache/camel/component/mongodb/gridfs/integration/AbstractMongoDbITSupport.java +++ b/components/camel-mongodb-gridfs/src/test/java/org/apache/camel/component/mongodb/gridfs/integration/AbstractMongoDbITSupport.java @@ -24,6 +24,7 @@ import org.apache.camel.CamelContext; import org.apache.camel.test.infra.mongodb.services.MongoDBService; import org.apache.camel.test.infra.mongodb.services.MongoDBServiceFactory; import org.apache.camel.test.junit5.CamelTestSupport; +import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.extension.RegisterExtension; public abstract class AbstractMongoDbITSupport extends CamelTestSupport { @@ -39,8 +40,8 @@ public abstract class AbstractMongoDbITSupport extends CamelTestSupport { return this.getClass().getSimpleName(); } - @Override - public void doPostTearDown() { + @AfterEach + public void tearDownMongo() { gridFSBucket.find().forEach(gridFSFile -> gridFSBucket.delete(gridFSFile.getId())); mongo.close(); }