OutputDir.path now private.
This commit is contained in:
parent
f611aa3227
commit
f5f5bf9f6c
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user