- Changed Native.get() to cache integration instances.
- Extracted DefaultSystemInfo out of a couple of separate places.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user