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
- Companion
- object
- Source
- TestSystem.scala
- Graph
-
- Supertypes
- Known subtypes
-
class Test
Members list
Type members
Inherited classlikes
trait UnsafeAPI extends Serializable
Attributes
- Inherited from:
- System
- Source
- System.scala
- Supertypes
-
trait Serializableclass Objecttrait Matchableclass Any
Value members
Abstract methods
Attributes
- Source
- TestSystem.scala
Attributes
- Source
- TestSystem.scala
Attributes
- Source
- TestSystem.scala
Attributes
- Source
- TestSystem.scala
Inherited methods
Attributes
- Inherited from:
- System
- Source
- System.scala
Inherited and Abstract methods
Attributes
- Inherited from:
- System
- Source
- System.scala
Attributes
- Inherited from:
- System
- Source
- System.scala
Attributes
- Inherited from:
- System
- Source
- System.scala
Attributes
- Inherited from:
- System
- Source
- System.scala
Attributes
- Inherited from:
- System
- Source
- System.scala
Attributes
- Inherited from:
- System
- Source
- System.scala
Attributes
- Inherited from:
- System
- Source
- System.scala
Attributes
- Inherited from:
- System
- Source
- System.scala
Attributes
- Inherited from:
- System
- Source
- System.scala
Attributes
- Inherited from:
- Restorable
- Source
- Restorable.scala
In this article