
Learn integration testing with Spring Boot; detect defects before delivery and improve reliability, availability, and market acceptance. Plan the right tests to manage maintenance costs amid changing environments.
Integration tests verify that independently developed components work together and reveal bugs from their interaction. Use manual or automated approaches and white-box, black-box, or gray-box methods, then plan dependencies.
Learn how spring testing modules simplify integration testing with the spring test context and spring boot test model, providing ready-to-use tools and libraries to manage test components.
Configure Spring Boot integration tests with appropriate test dependency for Gradle or Maven. Create an integration test class annotated with @SpringBootTest and @RunWith to run and verify a service output.
Use Spring profiles to separate tests from production and create environment config for each profile. Leverage active profiles in tests to switch configurations for integration testing.
Explore configuring test environments beyond profiles by using class property to add test beans and configurations, and leveraging context configuration and test configuration annotations to instantiate and run tests.
Learn how mocks and stubs replace heavy external components to speed Spring Boot tests, using Mockito annotations to inject mock services and verify hello world scenarios.
Learn how to set up a dedicated test database for Spring Boot integration tests, using profiles and an in-memory H2 database to avoid touching production data.
Learn how springboard runs database scripts for integration tests with Spring Boot and JPA, using schema and data files to create the schema and load test data.
Learn how SQL annotations run database scripts in integration tests, control execution order, and clean the table after tests to ensure reproducible results in Spring Boot.
Learn integration testing with Spring Boot and Spring Data JPA by testing a product repository, with test context setup, data cleanup, and name ignore case search.
Explore how to run Spring Data JPA tests with @DataJpaTest, configure a test database, and manage transactions with isolation and propagation for reliable integration tests.
Write an integration test for a Spring Data JDBC repository, autowire the repository in a Spring test, clean up after each test, and verify case-insensitive find-by-name and price order.
Develop and run complete integration tests with Spring Data JDBC and JdbcTemplate, using a database template to insert, read, delete, and select product data.
learn how to run integration tests with spring data jdbc using @datasjctest, configure a memory database, manage transactional test boundaries, and switch test annotations for patient data scenarios.
Learn how to run integration tests in Spring Boot by configuring a mock web environment, starting a web context for tests, and validating a simple hello endpoint.
Use TestRestTemplate as a fault-tolerant alternative to RestTemplate for integration tests, configure with a random port, and verify a get call returns a Mark with status 200.
Learn to use TestRestTemplate for post, get, delete, and exchange operations in Spring Boot tests, validating 201 and 200 responses with a person object.
Explore how to perform integration tests for web applications without starting a server by using MockMvc, @WebMvcTest, and mock dependencies to test a controller's get method.
Learn how to use MockMvc in Spring Boot to perform get requests, obtain result actions, and chain checks with Hamcrest to verify responses.
Demonstrates integration testing in Spring Boot through an MVC job candidate registration project, illustrating guarded pages, role-based access with Spring Security, and model attribute usage for the logged-in user.
Demonstrate integration testing with spring boot by validating the home page view content. Verify the no candidates message when the list is empty using given-when-then and body checks.
Explore integration testing with spring boot by validating model attributes in the controller, ensuring the candidate list hides when empty, and using model attributes to add the user name.
Explore grouping tests in Spring Boot integration testing by consolidating multiple scenarios into a single block, planning beforehand, and refining test names and comments to cover multiple user actions.
Group integration tests in spring boot by adding validations for content type, encoding, and the index view name. Validate candidate collections with size and contains checks.
Learn to simulate users in Spring Boot integration tests by configuring mockMvc with spring security test library, creating in-memory users with admin role, and validating authentication in tests.
Perform integration testing with Spring Boot by validating candidate form submissions using MockMvc and MockUser annotation, enforcing admin-only access and redirects to the home page.
About the course
The job market is demanding more and more professionals who know about software quality. This course focuses on improving software quality through integration testing.
At the end of this course, you will be able to understand and develop integration tests in applications that use Spring Boot.
Why should I learn about software quality or integration testing?
In 2002 NIST, the National Institute of Standards and Technology in Portuguese, reported that software bugs cost the US economy 59.5 billion dollars.
A software error can cause enormous damage to a company and errors in the software can drive away businesses and customers, because of this, companies are increasingly seeking to improve the quality of their products, to gain more trust from their customers and from the market, which is very competitive, in addition to looking for ways to reduce the costs.
Knowledge in this area can be the differential in a job selection.
Why Spring? Why Spring Boot?
Spring is a framework widely used in the job market. Many companies, big or small, use Spring and Spring Boot came with the purpose of making Spring easier to use.
Why this course?
In this course you will learn how to create integration tests using java, Spring Framework and Spring Boot. My teaching style is very straightforward, this course mixes theory and practice in a way that it is not tiring to learn about the subject.