object TestClient extends Serializable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- TestClient
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
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
-
def
addHandler[R](handler: PartialFunction[Request, ZIO[R, Throwable, Response]]): ZIO[R with TestClient, Nothing, Unit]
Adds a flexible handler for requests that are submitted by test cases
Adds a flexible handler for requests that are submitted by test cases
- R
Environment of the new handler's effect.
- handler
New behavior to be added to the TestClient
TestClient.addHandler{case request if request.method == Method.GET => ZIO.succeed(Response.ok)}
Example: -
def
addRequestResponse(request: Request, response: Response): ZIO[TestClient, Nothing, Unit]
Adds an exact 1-1 behavior
Adds an exact 1-1 behavior
- request
The request that will trigger the response
- response
The response to be returned when a user submits the response
TestClient.addRequestResponse(Request.get(URL.root), Response.ok)
Example: -
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def installSocketApp(app: Http[Any, Throwable, WebSocketChannelEvent, Unit]): ZIO[TestClient, Nothing, Unit]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val layer: ZLayer[Any, Nothing, TestClient]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )