DZone
DevOps Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > DevOps Zone > Mocking With the Mockito Framework and Testing REST APIs [Video]

Mocking With the Mockito Framework and Testing REST APIs [Video]

This video tutorial covers the Mockito framework and testing REST APIs/services.

Tarun Telang user avatar by
Tarun Telang
CORE ·
Oct. 30, 18 · DevOps Zone · Tutorial
Like (6)
Save
Tweet
34.88K Views

Join the DZone community and get the full member experience.

Join For Free

Overview

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.


REST Web Protocols unit test Framework Mockito Spring Framework Test-driven development

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • How the TypeScript ReturnType Works
  • Selenium vs. Protractor: What's the Difference?
  • Federated Schema Design
  • Troubleshooting Memory Leaks With Heap Profilers

Comments

DevOps Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo