ServerGrpcClient

play.grpc.specs2.ServerGrpcClient
trait ServerGrpcClient extends PekkoGrpcClientHelpers

Helpers to test gRPC clients with Play using Specs2.

Mixes a method into PekkoGrpcClientHelpers that knows how to configure gRPC clients for the running server.

Attributes

Graph
Supertypes
trait PekkoGrpcClientHelpers
class Object
trait Matchable
class Any

Members list

Type members

Inherited classlikes

final class WithGrpcClient[T <: PekkoGrpcClient]

Runs a block of code with a gRPC client, closing the client afterwards.

Runs a block of code with a gRPC client, closing the client afterwards.

Type parameters

T

The type of gRPC client.

Attributes

Inherited from:
PekkoGrpcClientHelpers
Supertypes
class Object
trait Matchable
class Any

Value members

Inherited methods

def grpcClient[T <: PekkoGrpcClient](implicit factory: Configured[T]): T

Get a gRPC client to connect to the currently running test server. Remember to close it afterwards, or use withGrpcClient to have it closed automatically.

Get a gRPC client to connect to the currently running test server. Remember to close it afterwards, or use withGrpcClient to have it closed automatically.

Attributes

Inherited from:
PekkoGrpcClientHelpers
def withGrpcClient[T <: PekkoGrpcClient]: WithGrpcClient[T]

Create a gRPC client to connect to the currently running test server.

Create a gRPC client to connect to the currently running test server.

Type parameters

T

The type of client to create.

Attributes

Inherited from:
PekkoGrpcClientHelpers

Implicits

Implicits

implicit def configuredPekkoGrpcClientFactory[T <: PekkoGrpcClient : ClassTag](implicit evidence$1: ClassTag[T], running: RunningServer): Configured[T]

Configure the factory by combining the app and the current implicit server information

Configure the factory by combining the app and the current implicit server information

Attributes