akka.grpc.interop.IoGrpcClient.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of akka-grpc-interop-tests_2.13 Show documentation
Show all versions of akka-grpc-interop-tests_2.13 Show documentation
Akka gRPC - Support for building streaming gRPC servers and clients on top of Akka Streams.
/*
* Copyright (C) 2018-2023 Lightbend Inc.
*/
package akka.grpc.interop
import io.grpc.internal.testing.TestUtils
import io.grpc.testing.integration2.{ GrpcJavaClientTester, Settings, TestServiceClient }
object IoGrpcClient extends GrpcClient {
override def run(args: Array[String]): Unit = {
TestUtils.installConscryptIfAvailable()
val settings = Settings.parseArgs(args)
val client = new TestServiceClient(new GrpcJavaClientTester(settings))
client.setUp()
try client.run(settings)
finally {
client.tearDown()
}
}
}