diff --git a/config/git/src/test/java/io/helidon/config/git/GitConfigSourceBuilderTest.java b/config/git/src/test/java/io/helidon/config/git/GitConfigSourceBuilderTest.java index 0e1e7bdd6f0..43a145ee91d 100644 --- a/config/git/src/test/java/io/helidon/config/git/GitConfigSourceBuilderTest.java +++ b/config/git/src/test/java/io/helidon/config/git/GitConfigSourceBuilderTest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, 2022 Oracle and/or its affiliates. + * Copyright (c) 2017, 2023 Oracle and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,8 +18,8 @@ import java.io.File; import java.io.IOException; +import java.lang.reflect.Method; import java.net.URI; -import java.nio.file.Path; import java.nio.file.Paths; import java.time.Duration; import java.util.Map; @@ -40,6 +40,7 @@ import org.junit.jupiter.api.Test; import org.junit.jupiter.api.TestInfo; import org.junit.jupiter.api.io.TempDir; +import org.junit.rules.TestName; import static io.helidon.config.PollingStrategies.regular; import static io.helidon.config.testing.ValueNodeMatcher.valueNode; @@ -60,6 +61,17 @@ public class GitConfigSourceBuilderTest extends RepositoryTestCase { @BeforeEach public void setUp(TestInfo testInfo) throws Exception { + String testMethodName = testInfo.getTestMethod() + .map(Method::getName) + .orElse(this.getClass().getName()); + /* Hack to let us re-use setup from jgit 6's LocalDiskRepositoryTestCase */ + super.currentTest = new TestName() { + @Override + public String getMethodName() { + return testMethodName; + } + }; + super.setUp(); git = new Git(db); diff --git a/dependencies/pom.xml b/dependencies/pom.xml index cf2600e8921..f4420bffe02 100644 --- a/dependencies/pom.xml +++ b/dependencies/pom.xml @@ -94,7 +94,7 @@ 4.0.3 3.6.3 3.1.3 - 5.11.1.202105131744-r + 6.7.0.202309050840-r 5.9.3 3.4.0 2.18.0