You have your web application up and working, but it's not covered with unit tests. Add some tests covering reactive code in this video.
- [Instructor] Hi, welcome to the last video…of the section in the course, Unit Testing.…In the previous video, we built our RESTful web service,…we replied back to the user, for both happy and sad path.…In this video, we are going to unit test…some reactive code we have in our services.…I'm sure you know about unit testing and mocking,…because we are using Dependency Injection,…mocking becomes easier,…since we just have to pass a mock object as a dependency.…Our goal in this video is to test…the exchange rates service implementation,…however, we don't want to make…any external network requests,…we would like to mock what we receive…as response from the external API.…
For that, we are going to extract that logic out…into a separate class that we are going to call,…the ExchangeRatesService Adapter,…and that is going to be injected in the services.…In that case, we can mock that request to the external API.…Let's take a look at that code.…For this video, I am using the latest (mumbles),…which is taught as version 5, Unit Testing.…
This course was created and produced by Packt Publishing. We are honored to host this training in our library.
- What is reactive programming?
- Java 9 reactive features
- Creating and observing sources with RxJava
- Unit testing
- Akka streams in a reactive environment
- Building a sample reactive application