From the course: Building Java Microservices with gRPC
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Test the user service
From the course: Building Java Microservices with gRPC
Test the user service
- [Instructor] The last part of this demo is now, to test that user service. For this, we're going to use a tool called BloomRPC. It's a GUI tool. The link has been provided on the slide. You can download it as an app and then get started for using it. So let's go to the IDE. Let's do a couple of more things. We are going to quickly put one info statement that the server did start. So that we can do here. And we'll look on line 24. And say logger.info. And say server started on port five, 5-0-0-5-1. Let's also modify the exception message on line 33. I was not very happy with it. So I'm just going to say server shut down interrupted because that was the exception that we got. Okay, so now let's go ahead and run this class so that the server gets started. So I'm going to run this. And once it runs, it should spring up saying that the server did get started on port 5-0-0-5-1. There we go. So now we have the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Overview of order management services built in the course4m 51s
-
(Locked)
Create a maven-gRPC project4m 21s
-
(Locked)
Define user.proto and generate service stubs4m 42s
-
(Locked)
Database code setup4m 27s
-
(Locked)
Add database method to get user details7m 37s
-
(Locked)
Implement service stub7m 30s
-
(Locked)
Write code to host the user service8m 55s
-
(Locked)
Test the user service6m 13s
-
(Locked)
-
-