Home How to test and mock a GRPC service written in Java using mockito
Reply: 0

How to test and mock a GRPC service written in Java using mockito

user504
1#
user504 Published in April 23, 2018, 9:20 am

The protobuf definition is as follows:

syntax = "proto3";

package helloworld;

// The greeting service definition.
service Greeter {
  // Sends a greeting
  rpc SayHello (HelloRequest) returns (HelloReply) {}
}

// The request message containing the user's name.
message HelloRequest {
  string name = 1;
}

// The response message containing the greetings
message HelloReply {
  string message = 1;
}

I need to use mockito along with junit testing !!

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.408973 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO