Testing Spring Boot Applications
Executive Summary: Most Spring Boot testing is plain JUnit 5 and Mockito: build the service directly and mock its dependencies. Here I show when to boot…
Category
This Java programming series goes from first classes to production Spring Boot apps. It has more than seventy posts, so it works as a full course.
Early posts cover the language and collections. Later, JDBC fundamentals and JPA and Hibernate add data access. Finally, testing Spring Boot apps ties it all together.
74 articles
Executive Summary: Most Spring Boot testing is plain JUnit 5 and Mockito: build the service directly and mock its dependencies. Here I show when to boot…
Executive Summary: Spring Security basics rest on two questions: authentication checks who is calling, and authorization decides what…
Executive Summary: Bean Validation lets you put constraints like @NotNull, @Size, and @Email on fields and check them…
Executive Summary: Java’s built-in HttpClient handles HTTP calls, and Jackson’s ObjectMapper turns JSON into records and back. I…
Executive Summary: The repository pattern puts data access behind a domain-named interface, with an in-memory implementation for fast…
Executive Summary: JPA and Hibernate replace hand-written row mapping with mutable entities managed by an EntityManager. I cover…
Executive Summary: This hands-on project builds a book catalog CRUD app with plain JDBC, H2, and a small…
Executive Summary: Production JDBC needs a connection pool and explicit transactions. I show how to configure HikariCP and…
Executive Summary: JDBC is a standard interface over vendor drivers, built on Connection, PreparedStatement, and ResultSet. Here I…
Executive Summary: A Java CI pipeline on GitHub Actions starts with one workflow file that checks out the…
Executive Summary: Debugging Java follows one loop: reproduce, isolate, form one hypothesis, and verify it with evidence. Here…
Executive Summary: Java logging works best with SLF4J as the facade and Logback as the engine, so levels…
Executive Summary: Good tests follow the test pyramid: many fast unit tests, fewer integration tests, and a thin…
Executive Summary: Mockito lets you replace a class’s dependencies with mocks, stub their responses, and verify the calls…