Tutorialspoint

FREEDOM SALE IS LIVE! Use: FREEDOM10

Practical Junit & Mockito Test with Java Spring Boot & JPA

person icon Skills Marathon

4.2

Practical Junit & Mockito Test with Java Spring Boot & JPA

Learn about Test Driven Development & how its implemented in companies for Java Spring Boot project using Junit & Mockito

updated on icon Updated on Sep, 2025

language icon Language - English

person icon Skills Marathon

category icon Development ,Programming Languages,JUnit

Lectures -58

Duration -7.5 hours

Lifetime Access

4.2

price-loader

Lifetime Access

30-days Money-Back Guarantee

Training 5 or more people ?

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

Course Description

Welcome to this amazing course, where you will learn about:
  • What is unit testing?
  • Why is unit testing important?
  • What is Test Driven Development(TDD) ?
  • How to apply Test Driven Development to the projects?
  • What is Junit and Mockito?
We will learn to write unit tests using Junit 5 Framework and Mockito Library.
We will start with how projects are developed in software companies using modern stacks like Java, Spring, Spring Boot, Hibernate, Spring Data JPA and Restful webservices. In this course you will be understanding how different technology and its components work together to build a real world application which end users are able to use in real life. It will be a Property Management System.
We will also learn to relate different concepts with real world examples. In this course we will learn the following:
  • We will learn different concepts Spring Framework and RESTful webservices
  • We will learn about different design patterns like Singleton, Prototype, Factory, MVC, Adapter etc
  • We will learn to create production ready application in a layered architecture
  • We will learn about ORM and Spring data JPA(Java Persistence API)
  • What is Unit Testing
  • What is TDD(Test Driven Development)
  • Why is Testing important
  • What is Junit and Mockito
  • Different Annotations of Junit and Mockito
  • Comparison between Junit-4 and Junit-5
  • Writing Test cases for the project’s different API endpoints
  • Checking the code coverage & Debugging
  • Writing Test cases for Success, Failure and Error scenarios
  • Test cases for Model classes
  • You will also get the complete source code used in the course.
Who this course is for:
  • Anyone who wants to become a real backend developer and start to work in companies as a developer of develop high quality projects of their own

Goals

  • You will learn about Unit testing and Test Driven Development(TDD) Approach
  • You will learn to write Junit and Mockito test cases for various scenarios
  • You will learn about Spring, Spring Boot and Create REST API's using different Annotations
  • You will learn to code with Layered Architecture approach
  • You will learn about Hibernate and JPA ORM framework and how to work with them
  • You will learn all this by the help of a project and complete hands-on

Prerequisites

  • Basics of Java Programming Language
Practical Junit & Mockito Test with Java Spring Boot & JPA

Curriculum

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

Introduction setup and concept building

13 Lectures
  • play icon Course Overview 02:35 02:35
  • play icon What is Unit Testing and Test Driven Development 08:41 08:41
  • play icon Software Installation 03:34 03:34
  • play icon Generating Springboot starter project 03:10 03:10
  • play icon Walkthrough of Springboot starter project files and folders 14:13 14:13
  • play icon Introduction to Spring Framework and SpringBoot 09:39 09:39
  • play icon RESTful webservices Http methods Status code SpringBoot Annotation 15:17 15:17
  • play icon MVC Design Pattern Part-1 14:51 14:51
  • play icon MVC Design Pattern Part-2 05:57 05:57
  • play icon Understanding and Creating DTO 08:26 08:26
  • play icon Understanding RESTful webservice with practical example 12:48 12:48
  • play icon Understanding RequestParam annotation with practical code example 22:48 22:48
  • play icon Undesrtanding PathVariable annotation with practical code example 14:07 14:07

Layered architecture, ORM framework and creating new property API

7 Lectures
Tutorialspoint

GET, PUT, PATCH, DELETE operation on properties

4 Lectures
Tutorialspoint

Unit test & different annotations

11 Lectures
Tutorialspoint

Lifecycle of test and assertions

3 Lectures
Tutorialspoint

Writing test cases with junit 5

7 Lectures
Tutorialspoint

Writing test cases for controller layer

4 Lectures
Tutorialspoint

Writing test cases for converter & service layer

6 Lectures
Tutorialspoint

Writing test cases for exception and model

3 Lectures
Tutorialspoint

Instructor Details

Skills Marathon

Skills Marathon

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