Developing Real-Time Spring Boot Unit & Integration Testing

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

Developing Real-Time Spring Boot Unit & Integration Testing

Developing Real-Time Spring Boot Unit & Integration Testing udemy course free download

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

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.