diff --git a/config/git/pom.xml b/config/git/pom.xml index a6c8b8954e3..3df557aede8 100644 --- a/config/git/pom.xml +++ b/config/git/pom.xml @@ -95,5 +95,11 @@ slf4j-jdk14 test + + junit + junit + ${version.lib.junit4} + test + 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 b00b8a2a96e..81dff718e70 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, 2019 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2017, 2023 Oracle and/or its affiliates. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,6 +18,7 @@ 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; @@ -48,6 +49,7 @@ import org.junit.jupiter.api.Test; import org.junit.jupiter.api.TestInfo; import org.junit.jupiter.api.extension.RegisterExtension; +import org.junit.rules.TestName; import static io.helidon.config.PollingStrategies.regular; import static io.helidon.config.testing.ValueNodeMatcher.valueNode; @@ -71,6 +73,16 @@ 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/pom.xml b/pom.xml index 5c816051392..5b12ba4e6a4 100644 --- a/pom.xml +++ b/pom.xml @@ -58,7 +58,7 @@ 8.29 1.2.4.Final 2.4.14 - 4.9.9.201903122025-r + 6.7.0.202309050840-r 0.1.55 2.0.54.Final 0.9.1