Platform-independent paths in TestBuildInfoPluginFuncTest (#128303)

This commit is contained in:
Patrick Doyle 2025-05-23 09:46:18 -04:00 committed by GitHub
parent de25987f15
commit 7e4d96e1d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,6 +5,8 @@ import com.fasterxml.jackson.databind.ObjectMapper
import org.elasticsearch.gradle.fixtures.AbstractGradleFuncTest
import org.gradle.testkit.runner.TaskOutcome
import java.nio.file.Path
class TestBuildInfoPluginFuncTest extends AbstractGradleFuncTest {
def "works"() {
given:
@ -52,7 +54,7 @@ class TestBuildInfoPluginFuncTest extends AbstractGradleFuncTest {
def location = Map.of(
"module", "com.example",
"representative_class", "com/example/Example.class"
"representative_class", Path.of("com", "example", "Example.class").toString()
)
def expectedOutput = Map.of(
"component", "example-component",