All Downloads are FREE. Search and download functionalities are using the official Maven repository.

akka.grpc.interop.IoGrpcClient.scala Maven / Gradle / Ivy

/*
 * 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()
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy