- Changed Native.get() to cache integration instances.

- Extracted DefaultSystemInfo out of a couple of separate places.
This commit is contained in:
Adam Murdoch
2012-09-08 10:11:25 +10:00
parent ab1487d215
commit f6ea1d8e33
10 changed files with 90 additions and 33 deletions

View File

@@ -8,6 +8,11 @@ class SystemInfoTest extends Specification {
@Rule TemporaryFolder tmpDir
final SystemInfo systemInfo = Native.get(SystemInfo.class)
def "caches system info instance"() {
expect:
Native.get(SystemInfo.class) == systemInfo
}
def "can query OS details"() {
expect:
systemInfo.kernelName