Mocking With the Mockito Framework and Testing REST APIs [Video]
This video tutorial covers the Mockito framework and testing REST APIs/services.
Join the DZone community and get the full member experience.
Join For FreeOverview
This session covers the following topics:
Recap of the Unit Testing session - Introduction to Unit Tests in Java using JUnit 5 [Video]
Recap of Test Driven Development (TDD) session - JUnit5 Deep Dive Using Test Driven Development [Video]
Introduction to following terminologies and their differences
- Dummy Class
- Fake Class
- Stub Class
- Mock Class
Basics of Spring Boot
Testing REST services with example service for Hello World and Factorial
Mocking with the Mockito framework
Pre-Requisites
- You should have Spring Tools Suite (STS) 4 or Any other open source IDE installed on your laptop with Java SDK 1.8.
- Some understanding of dependency management and build tools like Ant, Maven or Gradle would be helpful but not essentially required.
- familiarity with Unit Testing using JUnit (As covered in the previous session)
- For maximum benefit from this session, you can try out the step together while watching this on your computer.
Note: No slides were presented during this session; concepts were explained using Live Coding.
Opinions expressed by DZone contributors are their own.
Comments