mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-27 17:10:22 -04:00
Platform-independent paths in TestBuildInfoPluginFuncTest (#128303)
This commit is contained in:
parent
de25987f15
commit
7e4d96e1d8
1 changed files with 3 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue