Added concept of platform to the internals.

This commit is contained in:
Adam Murdoch
2012-08-04 11:41:19 +10:00
parent 0c8a041a6c
commit dadf93caf8
6 changed files with 77 additions and 13 deletions

View File

@@ -6,7 +6,7 @@ import org.junit.rules.TemporaryFolder
class PosixFileTest extends Specification {
@Rule TemporaryFolder tmpDir
final PosixFile file = Platform.get(PosixFile.class)
final PosixFile file = Native.get(PosixFile.class)
def "can set mode on a file"() {
def testFile = tmpDir.newFile("test.txt")