Developing Real-Time Spring Boot Unit & Integration Testing

Developing Real-Time Spring Boot Unit Tests and Integration Tests : JUnit 5, Mockito and Test Container

Ratings: 4.67 / 5.00




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.



What You Will 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.

Who Should Attend!

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