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.…
AuthorManuel Vicente Vivo
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
Skill Level Intermediate
1. What Is Reactive Programming?
2. Reactivity in Java 9
3. Introducing RxJava 2.0
5. Concurrency and Unit Testing
6. Akka Streams
7. Real-Life Reactive Application
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.