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

user3783
1#
user3783 Published in September 19, 2018, 9:07 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 !!

share|improve this question

2 Answers 2

active oldest votes
up vote 0 down vote accepted
You need to login account before you can post.

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

© 2016 Powered by mzan.com design MATCHINFO