Class PreconditionContext
java.lang.Object
org.spockframework.runtime.extension.builtin.PreconditionContext
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PreconditionContext
public PreconditionContext()
-
-
Method Details
-
getEnv
Returns the current JVM's environment variables.- Returns:
- the current JVM's environment variables
-
getSys
Returns the current JVM's system properties.- Returns:
- the current JVM's system properties
-
getProperties
Deprecated.usegetSys()insteadReturns the current JVM's system properties.- Returns:
- the current JVM's system properties
-
getOs
Returns the current operating system.- Returns:
- the current operating system
-
getJvm
Returns the current JVM.- Returns:
- the current JVM
-
getJavaVersion
Returns the current JVM's Java specification version. Examples for valid values are1.6and1.7.- Returns:
- the current JVM's Java specification version
-
getSys()instead