object MockSystem extends Serializable
- Alphabetic
- By Inheritance
- MockSystem
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- case class Data(properties: Map[String, String] = Map.empty, envs: Map[String, String] = Map.empty, lineSeparator: String = "\n") extends Product with Serializable
The state of the
MockSystem. - case class Mock(systemState: Ref[Data]) extends Service[Any] with Product with Serializable
- trait Service[R] extends system.System.Service[R]
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val DefaultData: Data
The default initial state of the
MockSystemwith no environment variable or system property mappings and the system line separator set to the new line character. - final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clearEnv(variable: String): ZIO[MockSystem, Nothing, Unit]
Accesses a
MockSysteminstance in the environment and clears the mapping of environment variables. - def clearProperty(prop: String): ZIO[MockSystem, Nothing, Unit]
Accesses a
MockSysteminstance in the environment and clears the mapping of system properties. - def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def make(data: Data): UIO[MockSystem]
Constructs a new
MockSystemwith the specified initial state.Constructs a new
MockSystemwith the specified initial state. This can be useful for providing the required environment to an effect that requires aConsole, such as with ZIO!.provide. - def makeMock(data: Data): UIO[Mock]
Constructs a new
Mockobject that implements theMockSysteminterface.Constructs a new
Mockobject that implements theMockSysteminterface. This can be useful for mixing in with implementations of other interfaces. - final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def putEnv(name: String, value: String): ZIO[MockSystem, Nothing, Unit]
Accesses a
MockSysteminstance in the environment and adds the specified name and value to the mapping of environment variables. - def putProperty(name: String, value: String): ZIO[MockSystem, Nothing, Unit]
Accesses a
MockSysteminstance in the environment and adds the specified name and value to the mapping of system properties. - def setLineSeparator(lineSep: String): ZIO[MockSystem, Nothing, Unit]
Accesses a
MockSysteminstance in the environment and sets the line separator to the specified value. - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()