OutputDir.path now private.

This commit is contained in:
JesseBrault0709 2023-04-30 06:53:25 +02:00
parent f611aa3227
commit f5f5bf9f6c
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ import groovy.transform.NullCheck
@EqualsAndHashCode @EqualsAndHashCode
final class OutputDir { final class OutputDir {
final String path private final String path
OutputDir(String path) { OutputDir(String path) {
this.path = path this.path = path

View File

@ -75,7 +75,7 @@ final class BuildScriptBaseTests {
} }
assertEquals(1, r.size()) assertEquals(1, r.size())
def b0 = r[0] def b0 = r[0]
assertEquals(f, b0.outputDirFunction.apply(b0).asFile()) assertEquals(f, b0.outputDirFunction.apply(b0) as File)
} }
@Test @Test
@ -87,7 +87,7 @@ final class BuildScriptBaseTests {
} }
assertEquals(1, r.size()) assertEquals(1, r.size())
def b0 = r[0] def b0 = r[0]
assertEquals('test', b0.outputDirFunction.apply(b0).path) assertEquals('test', b0.outputDirFunction.apply(b0) as String)
} }
@Test @Test