4.5
20 reviews
Practical Junit & Mockito Test with Java SpringBoot & JPA
Learn about Test Driven Development & how its implemented in companies for Java SpringBoot project using Junit & Mockito
- Description
- Curriculum
- FAQ
- Reviews
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, SpringBoot, 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.
Layered Architecture, ORM Framework and Creating new property API
-
1Course OverviewVideo lesson
-
2About your InstructorText lesson
-
3What is Unit Testing and Test Driven DevelopmentVideo lesson
-
4Software InstallationVideo lesson
-
5Generating Springboot starter projectVideo lesson
-
6Walkthrough of Springboot starter project files and foldersVideo lesson
-
7Introduction to Spring Framework and SpringBootVideo lesson
-
8RESTful webservices Http methods Status code SpringBoot AnnotationVideo lesson
-
9MVC Design Pattern Part-1Video lesson
-
10MVC Design Pattern Part-2Video lesson
-
11Understanding and Creating DTOVideo lesson
-
12Understanding RESTful webservice with practical exampleVideo lesson
-
13Understanding RequestParam annotation with practical code exampleVideo lesson
-
14Undesrtanding PathVariable annotation with practical code exampleVideo lesson
-
15Undesrtanding Post Put Delete annotation and ResponseEntity with practical codeVideo lesson
GET, PUT, PATCH, DELETE operation on properties
-
16Save new property Post endpointVideo lesson
-
17Creating Service layer Dependency Injection Autowired Singleton PrototypeVideo lesson
-
18Understanding Layered Architecture and Need for different database in DTAPVideo lesson
-
19Overview of Hibernate ORM Framework and JPA specificationVideo lesson
-
20Understanding how ORM framework like Hibernate work and different hibernateVideo lesson
-
21Working on Entity class and understanding different JPA annotationVideo lesson
-
22Saving Property in DB with PropertyRepositoryVideo lesson
-
23MVC patternVideo lesson
-
24Added PropertyConverter for DTO to EntityVideo lesson
-
25Sending back the new entity along with status using ResponseEntityVideo lesson
Unit Test & Different Annotations
Lifecycle of Test and Assertions
-
30What is JunitVideo lesson
-
31What are Annotations in JavaVideo lesson
-
32BeforeEach AnnotationVideo lesson
-
33AfterEach AnnotationVideo lesson
-
34BeforeAll and AfterAll AnnotationVideo lesson
-
35Test AnnotationVideo lesson
-
36Disabled AnnotationVideo lesson
-
37DisplayName AnnotationVideo lesson
-
38ParameterizedTest and ValueSource AnnotationVideo lesson
-
39RepeatedTest AnnotationVideo lesson
-
40Tag AnnotationVideo lesson
Writing Test Cases with JUnit 5
Writing Test Cases for Controller Layer
-
44Package structure and DependencyVideo lesson
-
45Writing Our First Junit and Mockito TestVideo lesson
-
46Applying BeforeEach and AfterEach to our Test scenariosVideo lesson
-
47Applying BeforeAll and AfterAll to the test scenariosVideo lesson
-
48Code Coverage By Writing Test for Different ScenariosVideo lesson
-
49Static Import of Assert FunctionVideo lesson
-
50Writing Test for Complex Object with multiple AssertionsVideo lesson
Writing Test Cases for Converter & Service layer
-
51Writing Test for PropertyController & understanding why we need Mock AnnotationVideo lesson
-
52Usage of Mock Annotation to avoid dependencies getting null valueVideo lesson
-
53Using When Then to bypass the dependency in our testing logicVideo lesson
-
54Test case for Get All Properties method in controllerVideo lesson
-
55Test case for update price method in controllerVideo lesson
Writing Test cases for Exception and Model
-
56Test case for Converter DTO to EntityVideo lesson
-
57Test case for Converter Entity to DTOVideo lesson
-
58Testing Saved Property of Service LayerVideo lesson
-
59Test case for Get All Properties in ServiceVideo lesson
-
60Test case for Update All Properties in ServiceVideo lesson
-
61Test case for Update Description for Property in ServiceVideo lesson
How long do I have access to the course materials?
You can view and review the lecture materials indefinitely, like an on-demand channel.
Can I take my courses with me wherever I go?
Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don't have an internet connection, some instructors also let their students download course lectures. That's up to the instructor though, so make sure you get on their good side!

Share
30-Day Money-Back Guarantee
Course details
Video
9 hours
Lectures
2
Certificate of Completion
Full lifetime access
Access on mobile and TV
Popular courses
External Links May Contain Affiliate Links read more