mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 09:28:55 -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.elasticsearch.gradle.fixtures.AbstractGradleFuncTest
|
||||||
import org.gradle.testkit.runner.TaskOutcome
|
import org.gradle.testkit.runner.TaskOutcome
|
||||||
|
|
||||||
|
import java.nio.file.Path
|
||||||
|
|
||||||
class TestBuildInfoPluginFuncTest extends AbstractGradleFuncTest {
|
class TestBuildInfoPluginFuncTest extends AbstractGradleFuncTest {
|
||||||
def "works"() {
|
def "works"() {
|
||||||
given:
|
given:
|
||||||
|
@ -52,7 +54,7 @@ class TestBuildInfoPluginFuncTest extends AbstractGradleFuncTest {
|
||||||
|
|
||||||
def location = Map.of(
|
def location = Map.of(
|
||||||
"module", "com.example",
|
"module", "com.example",
|
||||||
"representative_class", "com/example/Example.class"
|
"representative_class", Path.of("com", "example", "Example.class").toString()
|
||||||
)
|
)
|
||||||
def expectedOutput = Map.of(
|
def expectedOutput = Map.of(
|
||||||
"component", "example-component",
|
"component", "example-component",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue