Tutorialspoint

April Learning Carnival is here, Use code FEST10 for an extra 10% off

Testing Java, Spring apps with JUNIT, Mockito, Wiremock

person icon Covrig George-Manuel

4

Testing Java, Spring apps with JUNIT, Mockito, Wiremock

Learn to write high quality code

updated on icon Updated on Apr, 2024

language icon Language - English

person icon Covrig George-Manuel

category icon Java,Java Testing,Java & Spring

Lectures -19

Resources -14

Duration -7.5 hours

4

price-loader

30-days Money-Back Guarantee

Training 5 or more people ?

Get your team access to 10000+ top Tutorials Point courses anytime, anywhere.

Course Description

"Testing Java Apps with JUnit, Mockito, Wiremock, and Postman" is a course designed for Java developers who want to improve their skills in creating robust, high-quality software. It covers the use of JUnit, a popular Java framework for unit testing, along with the Mockito and Wiremock libraries for creating mock objects and simulating HTTP interactions. Additionally, the course covers the use of Postman for testing and debugging RESTful API's. Throughout the course, you will learn how to write test cases that are easy to maintain, understand and execute. The course will also cover the best practices and common pitfalls to avoid when testing Java applications. By the end of the course, you will have the knowledge and skills needed to confidently create, execute, and maintain automated tests for your Java applications.


You will learn about :

  • JUNIT concepts - we first write the code for our app, then we identify what is missing to be proud of our code and at the end of this chapter we implement some tests that will cover all our functionality.

  • how to use POSTMAN to write automated tests and also build your own mock server. POSTMAN is used, most of the times, just for making requests to our app, but in reality it has a lot of functionality that can make your life easier

  • Mockito - we will talk about stubs/spies/mocks. We first write some tests that will use stub/mock/spy for the simple java app and after that we learn what changes in our approach. You will need this information to know exactly when to use what.

  • Wiremock - you will learn how to an app that uses a rest api client

These are must know knowledge if you want to advance your career and write better code.


Goals

What will you learn in this course:

Learn how to build robust apps by testing your code properly

Prerequisites

What are the prerequisites for this course?

I would recommend taking the Simple java course first.

Also taking the course about data structures and multithreading can be a plus.

Testing Java, Spring apps with JUNIT, Mockito, Wiremock

Curriculum

Check out the detailed breakdown of what’s inside the course

JUNIT5/Mockito/Mocks/Stub/Spy/Exception Testing
11 Lectures
  • play icon JUNIT5 introduction and practical example 34:50 34:50
  • play icon Mockito, Stub, Spy presentation 09:19 09:19
  • play icon Presentation and implementation of the flow 29:13 29:13
  • play icon Mockito, Spy, Stub on the previously implemented app 44:36 44:36
  • play icon Mocking exceptions 27:16 27:16
  • play icon Exception testing by using spies 36:54 36:54
  • play icon Wiremock introduction 06:13 06:13
  • play icon Presentation and implementation of the flow part 2 44:14 44:14
  • play icon Reset mocks 03:20 03:20
  • play icon Mockito, Spy, Stub in Spring - preparing the workspace 19:31 19:31
  • play icon Mockito, Spy, Stub in Spring - tests implementing 12:32 12:32
Wiremock and Mock server with POSTMAN
4 Lectures
Tutorialspoint
Test your rest api with postman
4 Lectures
Tutorialspoint

Instructor Details

user profile image

Covrig George-Manuel

e


Course Certificate

Use your certificate to make a career change or to advance in your current career.

sample Tutorialspoint certificate

Our students work
with the Best

Related Video Courses

View More

Annual Membership

Become a valued member of Tutorials Point and enjoy unlimited access to our vast library of top-rated Video Courses

Subscribe now
Annual Membership

Online Certifications

Master prominent technologies at full length and become a valued certified professional.

Explore Now
Online Certifications

Talk to us

1800-202-0515