Master Java Unit Testing with Spring Boot & Mockito
Master Java Unit Testing with Spring Boot & Mockito, available at $84.99, has an average rating of 4.46, with 56 lectures, based on 6835 reviews, and has 34053 subscribers.
You will learn about You will learn to WRITE GREAT UNIT and INTEGRATION Tests using Spring Boot Starter Test from SCRATCH You will learn to Write INDEPENDENT Unit Tests for RESTFUL web services talking with MULTIPLE LAYERS – web, business and data You will learn to Use the most important Unit Testing ANNOTATIONS – @SpringBootTest, @WebMvcTest, @DataJpaTest and @MockBean Use ALL the FRAMEWORKS in Spring Boot Starter Test – JUnit, Spring Test, Spring Boot Test, AssertJ, Hamcrest, Mockito, JSONassert and JsonPath. You will learn to write unit tests using MOCKS and SPYS created with MOCKITO You will learn to Write Integration Tests using an IN MEMORY DATABASE – H2 This course is ideal for individuals who are You are a Spring/Spring Boot/Java Programmer and You want to write awesome unit tests for your RESTful Services or You want to write awesome unit tests with mocking or You want to understand the best practices in writing great unit tests with JUnit, Mockito and Spring Boot Starter Test or You want to learn to write great asserts with Hamcrest Matchers, JSON Assert, Assert J and JSON Path libraries It is particularly useful for You are a Spring/Spring Boot/Java Programmer and You want to write awesome unit tests for your RESTful Services or You want to write awesome unit tests with mocking or You want to understand the best practices in writing great unit tests with JUnit, Mockito and Spring Boot Starter Test or You want to learn to write great asserts with Hamcrest Matchers, JSON Assert, Assert J and JSON Path libraries.
Enroll now: Master Java Unit Testing with Spring Boot & Mockito
Summary
Title: Master Java Unit Testing with Spring Boot & Mockito
Price: $84.99
Average Rating: 4.46
Number of Lectures: 56
Number of Published Lectures: 56
Number of Curriculum Items: 56
Number of Published Curriculum Objects: 56
Original Price: $19.99
Quality Status: approved
Status: Live
What You Will Learn
- You will learn to WRITE GREAT UNIT and INTEGRATION Tests using Spring Boot Starter Test from SCRATCH
- You will learn to Write INDEPENDENT Unit Tests for RESTFUL web services talking with MULTIPLE LAYERS – web, business and data
- You will learn to Use the most important Unit Testing ANNOTATIONS – @SpringBootTest, @WebMvcTest, @DataJpaTest and @MockBean
- Use ALL the FRAMEWORKS in Spring Boot Starter Test – JUnit, Spring Test, Spring Boot Test, AssertJ, Hamcrest, Mockito, JSONassert and JsonPath.
- You will learn to write unit tests using MOCKS and SPYS created with MOCKITO
- You will learn to Write Integration Tests using an IN MEMORY DATABASE – H2
Who Should Attend
- You are a Spring/Spring Boot/Java Programmer and You want to write awesome unit tests for your RESTful Services
- You want to write awesome unit tests with mocking
- You want to understand the best practices in writing great unit tests with JUnit, Mockito and Spring Boot Starter Test
- You want to learn to write great asserts with Hamcrest Matchers, JSON Assert, Assert J and JSON Path libraries
Target Audiences
- You are a Spring/Spring Boot/Java Programmer and You want to write awesome unit tests for your RESTful Services
- You want to write awesome unit tests with mocking
- You want to understand the best practices in writing great unit tests with JUnit, Mockito and Spring Boot Starter Test
- You want to learn to write great asserts with Hamcrest Matchers, JSON Assert, Assert J and JSON Path libraries
Great Programmers write Great Unit Tests. Want to Write Great Unit Tests for Spring Boot REST API?
Spring Boot Test? Yes. Layered Unit Tests? Yes. Of Course. Spring Boot Integration Tests? Yes.
Mockito? Yes. JsonAssert, Hamcrest Matchers, and JsonPath? Yes. Included.
WHAT OUR LEARNERS ARE SAYING:
5 STARS –This a very comprehensive introduction to spring boot test, which brings Mockito, Junit, JsonAssert, Spring Data JPA, REST, design pattern, and many more. Very valuable course. Thanks.
5 STARS –Excellent and to the point course on Unit testing with good references.
5 STARS –This is an excellent course for both beginners as well as experienced Java developers who which to hone their skill. The instructor was very knowledgeable and knew how to keep the course engaging while providing lots of tips. Highly recommended…
5 STARS –Great Course to learn Junit Testing. Great content and great examples to explain each scenarios of writing test cases. If you want to write java test cases then definitely go through this course.
5 STARS –This course is a great introduction to unit and integration testing using Spring Boot, Mockito, and a number of other libraries that can help to write effective tests. It is easy to follow along with and has plenty of references where to look for more information.
5 STARS –Needed it for new client project. Excellent source of concise tutorials for JUnit of microservices.
5 STARS –I was drowning in unit test concepts and this course cleared up what read about them. And have a simple but clear explanation of when is good and how to create unit test in your app.
COURSE OVERVIEW
Spring Boot is the most popular framework to develop RESTful Services. It has Awesome Unit Testing capabilities through Spring Boot Starter Test. Mockito is the most popular mocking framework. JUnit is most popular Java Unit Testing Framework.
In this course, you will learn to Write Great Unit Tests for Simple RESTful Services with Spring Boot Starter Test, Mockito and JUnit. You will learn to write independent unit tests for RESTful web services talking with multiple layers – web, business and data. You will learn how to write integration tests using an in memory database H2.
You will build the unit tests step by step – in 40 easy steps. This course would be a perfect first step as an introduction to unit testing with Spring Boot and Mockito Frameworks.
You will be using Spring (Dependency Management), Spring Boot, Maven (dependencies management), Eclipse (IDE), in memory database H2 and Tomcat Embedded Web Server. We will help you set up each one of these.
You will use all the frameworks that are part of Spring Boot Starter Test – JUnit, Spring Test, Spring Boot Test, AssertJ, Hamcrest, Mockito, JSONassert and JsonPath.
You will learn to use the most important Unit Testing Annotations – @RunWith(SpringRunner.class), @SpringBootTest, @WebMvcTest, @DataJpaTest and @MockBean.
COURSE HIGHLIGHTS
Section 1 – Learning Mocking with Mockito
-
Step 01: Setting up the project using Spring Initializr
-
Step 02: Writing Unit Test for a Simple Business Service
-
Step 03: Setting up a Business Service to call a Data Service
-
Step 04: Writing your first unit test with Stub
-
Exercise – Update Tests 2 & 3
-
-
Step 05: Exercise Solution – Updating Tests 2 & 3 to use Stubs – Problem with Stubs.
-
Step 06: Writing Unit Tests with Mocking using Mockito
-
Exercise – Updating Tests 2 & 3 to use Mockito
-
-
Step 07: Exercise Solution – Updating Tests 2 & 3 to use Mockito
-
Step 08: More Refactoring – @Mock, @InjectMocks and @RunWith(MockitoJUnitRunner.class)
-
Step 09: Mockito Tips – Multiple Return Values and Specific Argument Matchers
-
Step 10: Mockito Tips – Argument Matchers
-
Step 11: Mockito Tips – Verify method calls
-
Step 12: Mockito Tips – Argument Capture
-
Step 13: Mockito Tips – Argument Capture on Multiple Calls
-
Step 14: Introduction to Spy
-
Step 15: Mockito FAQ
Section 2 – Unit Testing RESTful Services with Spring Boot and Mockito
-
Step 01: Creating a Hello World Controller
-
Step 02: Using Mock Mvc to test Hello World Controller
-
Step 03: Using Response Matchers to check status and content
-
Step 04: Creating a Basic REST Service in Item Controller
-
Step 05: Unit Testing Item Controller and Basic JSON Assertions
-
Step 06: Digging deeper into JSON Assert
-
Step 07: Writing a REST Service talking to Business Layer
-
Step 08: Writing Unit Test for REST Service mocking Business Layer
-
Step 09: Prepare Data Layers with JPA, Hibernate and H2
-
Step 10: Create Item Entity and Populate data with data.sql
-
Step 11: Create a RESTful Service talking to the database
-
Step 12: Writing Unit Test for Web Layer – Controller – Using Mock MVC
-
Step 13: Exercise & Solution – Writing Unit Test for Business Layer – Mocking
-
Step 14: Writing Unit Test for Data Layer – Data JPA Test
-
Step 15: Writing an Integration Test using @SpringBootTest
-
Step 16: Tip : Using @MockBean to mock out dependencies you do not want to talk to!
-
Step 17: Tip : Creating Different Test Configuration
-
Step 18: Writing Unit Tests for Other Request Methods
-
Step 19: Refactor SomeBusinessImpl to use Functional Programming
-
Step 20: Better Assertions with Hamcrest – HamcrestMatcherTest
-
Step 21: Better Assertions with AssertJ – AssertJTest
-
Step 22: Better Assertions with JSONPath – JSONPathTest
-
Step 23: Easier Static Imports
-
Step 24: Tip : Measuring Test Coverage with Eclipse
-
Step 25: Tip : Keep an eye on performance of unit tests!
-
Step 26: Good Unit Tests
Start Learning Now. Hit the Enroll Button!
Course Curriculum
Chapter 1: Introduction
Lecture 1: Introduction
Lecture 2: Course Overview
Lecture 3: DO NOT SKIP: Join our Learning Community
Chapter 2: Section 1 – Mocking With Mockito
Lecture 1: Step 00 – Section Introduction – Mocking with Mockito
Lecture 2: Step 01 – Setting up the project using Spring Initializr
Lecture 3: COURSE UPDATE: JUNIT 4 vs JUNIT 5
Lecture 4: Step 02 – Writing Unit Test for a Simple Business Service
Lecture 5: Step 03 – Setting up a Business Service to call a Data Service
Lecture 6: Step 04 – Writing your first unit test with Stub
Lecture 7: Step 05 – Exercise Solution – Updating Tests 2 & 3 to use Stubs
Lecture 8: Step 06 – Writing Unit Tests with Mocking using Mockito
Lecture 9: Step 07 – Exercise Solution – Updating Tests 2 & 3 to use Mockito
Lecture 10: JUnit 5 Alert
Lecture 11: Step 08 – More Refactoring – @Mock, @InjectMocks and @RunWith(MockitoJUnitRunner
Lecture 12: Step 09 – Mockito Tips – Multiple Return Values and Specific Argument Matchers
Lecture 13: Step 10 – Mockito Tips – Argument Matchers
Lecture 14: Step 11 – Mockito Tips – Verify method calls
Lecture 15: Step 12 – Mockito Tips – Argument Capture
Lecture 16: Step 13 – Mockito Tips – Argument Capture on Multiple Calls
Lecture 17: Step 14 – Introduction to Spy
Lecture 18: Step 15 – Mockito FAQ
Chapter 3: Section 2 – Unit Testing With Spring Boot And Mockito
Lecture 1: Step 00 – Section Introduction – Unit Testing with Spring Boot and Mockito
Lecture 2: Fastest Approach to Solve All Your Exceptions
Lecture 3: Step 01 – Creating a Hello World Controller
Lecture 4: JUnit 5 Alert
Lecture 5: Step 02 – Using Mock Mvc to test Hello World Controller
Lecture 6: Step 03 – Using Response Matchers to check status and content
Lecture 7: Step 04 – Creating a Basic REST Service in Item Controller
Lecture 8: Step 05 – Unit Testing Item Controller and Basic JSON Assertions
Lecture 9: Step 06 – Digging deeper into JSON Assert
Lecture 10: Step 07 – Writing a REST Service talking to Business Layer
Lecture 11: Step 08 – Writing Unit Test for REST Service mocking Business Layer
Lecture 12: Step 09 – 00 – Overview of Steps 09 to 15
Lecture 13: COURSE UPDATE : H2 Database URL
Lecture 14: Step 09 – 01 – Prepare Data Layers with JPA, Hibernate and H2
Lecture 15: Step 10 – Create Item Entity and Populate data with data.sql
Lecture 16: Step 11 – Create a RESTful Service talking to the database
Lecture 17: Step 12 – Writing Unit Test for Web Layer – Controller – Using Mock MVC
Lecture 18: Step 13 – Exercise & Solution – Writing Unit Test for Business Layer – Mocking
Lecture 19: JUnit 5 Alert
Lecture 20: Step 14 – Writing Unit Test for Data Layer – Data JPA Test
Lecture 21: JUnit 5 Alert
Lecture 22: Step 15 – Writing an Integration Test using @SpringBootTest
Lecture 23: Step 16 – Tip – Using @MockBean to mock out dependencies you do not want to talk
Lecture 24: Step 17 – Tip – Creating Different Test Configuration
Lecture 25: Step 18 – Writing Unit Tests for Other Request Methods
Lecture 26: Step 19 – Refactor SomeBusinessImpl to use Functional Programming
Lecture 27: Step 20 – Better Assertions with Hamcrest – HamcrestMatcherTest
Lecture 28: Step 21 – Better Assertions with AssertJ – AssertJTest
Lecture 29: Step 22 – Better Assertions with JSONPath – JSONPathTest
Lecture 30: Step 23 – Tip Patterns – xunitpatterns
Lecture 31: Step 24 – Tip – Measuring Test Coverage with Eclipse
Lecture 32: Step 25 – Tip – Keep an eye on performance of unit tests!
Lecture 33: Step 26 – Good Unit Tests
Chapter 4: Congratulations
Lecture 1: Bonus Lecture
Lecture 2: Next Steps
Instructors
-
in28Minutes Official
DevOps, Azure, GCP, Docker, Kubernetes, Java & Spring Boot
Rating Distribution
- 1 stars: 62 votes
- 2 stars: 89 votes
- 3 stars: 724 votes
- 4 stars: 2666 votes
- 5 stars: 3295 votes
Frequently Asked Questions
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!
You may also like
- Top 10 Video Editing Courses to Learn in November 2024
- Top 10 Music Production Courses to Learn in November 2024
- Top 10 Animation Courses to Learn in November 2024
- Top 10 Digital Illustration Courses to Learn in November 2024
- Top 10 Renewable Energy Courses to Learn in November 2024
- Top 10 Sustainable Living Courses to Learn in November 2024
- Top 10 Ethical AI Courses to Learn in November 2024
- Top 10 Cybersecurity Fundamentals Courses to Learn in November 2024
- Top 10 Smart Home Technology Courses to Learn in November 2024
- Top 10 Holistic Health Courses to Learn in November 2024
- Top 10 Nutrition And Diet Planning Courses to Learn in November 2024
- Top 10 Yoga Instruction Courses to Learn in November 2024
- Top 10 Stress Management Courses to Learn in November 2024
- Top 10 Mindfulness Meditation Courses to Learn in November 2024
- Top 10 Life Coaching Courses to Learn in November 2024
- Top 10 Career Development Courses to Learn in November 2024
- Top 10 Relationship Building Courses to Learn in November 2024
- Top 10 Parenting Skills Courses to Learn in November 2024
- Top 10 Home Improvement Courses to Learn in November 2024
- Top 10 Gardening Courses to Learn in November 2024