Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Developing Real-Time Spring Boot Unit & Integration Testing
Rating: 4.6 out of 5(10 ratings)
181 students

Developing Real-Time Spring Boot Unit & Integration Testing

Developing Real-Time Spring Boot Unit Tests and Integration Tests : JUnit 5, Mockito and Test Container
Last updated 12/2023
English

What you'll learn

  • Understanding how to build unit tests
  • Understanding how to build integration tests
  • Working with test containers
  • Using Junit and Mockito to implment unit testing
  • Apply Test Driven Development (TDD) using JUnit 5, Mockito and Spring Boot
  • Spring Boot developers with JUnit and Mockito testing are in HIGH-DEMAND.
  • You can download all source code for offline LEARNING and REVIEW.

Course content

8 sections30 lectures3h 38m total length
  • Course Overview5:04
  • Course Sections2:57

Requirements

  • Java: Java 8 or higher
  • Spring Boot 2 or Spring Boot 3

Description

Spring Boot :

Is the most popular framework for building enterprise Java applications. Spring Boot includes testing support to develop unit tests and integration tests using JUnit, Mockito and MockMvc. By developing tests, you can create applications with better code design, fewer bugs, and higher reliability. This course shows you how to take full advantage of Spring Boot's testing support.


JUnit :

  • Develop JUnit Tests

  • Set up projects to use JUnit

  • Apply JUnit assertions: Equals/Not Equals and Null/NotNull

  • Apply JUnit assertions: Same/Not Same and True/False

  • Leverage JUnit lifecycle annotations

  • Define custom display names for JUnit tests

  • Check for exceptions and timeouts

  • Define execution order in JUnit tests

  • Perform code coverage analysis for JUnit tests

  • Apply conditionals with JUnit tests


Test Driven Development (TDD) : 

  • Apply Test Driven Development for build tests and application code.

  • Create a failing test first.

  • Update your code to make the tests pass.

  • Take your tests from RED to GREEN.

  • Apply TDD to a coding project.

  • Leverage parameterized tests with TDD.


Mocking with Mockito :

  • Identify the need for mocking during test development

  • Leverage Mockito in JUnit tests

  • Applying the @MockBean annotation for injection

  • Throwing exceptions with Mocks


Database Integration Testing :

  • Identify the need for database integration testing during test development

  • Add database setup and clean code using @BeforeEach and @AfterEach

  • Leverage an embedded database to ease with testing setup and maintenance.



Who this course is for:

  • Java Web Developer
  • JEE Developer
  • Web Developer
  • Web Programming
  • Java Programming