zio.test.TestSystem
See theTestSystem companion object
trait TestSystem extends System, Restorable
TestSystem supports deterministic testing of effects involving system properties. Internally, TestSystem maintains mappings of environment variables and system properties that can be set and accessed. No actual environment variables or system properties will be accessed or set as a result of these actions.
import zio.system
import zio.test.TestSystem
for {
_ <- TestSystem.putProperty("java.vm.name", "VM")
result <- system.property("java.vm.name")
} yield result == Some("VM")
Attributes
Members list
Type members
Inherited classlikes
trait UnsafeAPI extends Serializable
Attributes
- Inherited from:
- System
- Supertypes
-
trait Serializableclass Objecttrait Matchableclass Any
Value members
Abstract methods
Inherited and Abstract methods
Attributes
- Inherited from:
- System
Attributes
- Inherited from:
- System
Attributes
- Inherited from:
- System
Attributes
- Inherited from:
- System
Attributes
- Inherited from:
- System
Attributes
- Inherited from:
- System
Attributes
- Inherited from:
- System
Attributes
- Inherited from:
- System
In this article