Here's what I've written (so far):

Baeldung on Java

  • All
  • Testing (10)
  • Data (7)
  • Architecture (7)
  • Reactive (5)
  • Spring WebFlux (4)
  • Spring Data (4)
  • Spring Boot (4)
  • Persistence (4)
  • Spring (3)
  • Maven (3)
  • Java Streams (3)
  • Java Concurrency (3)
  • Docker (3)
  • Java (2)
  • Artificial Intelligence (2)
  • Web Services (1)
  • Spring Web (1)
  • Spring AI (1)
  • Java Dates (1)
  • Java Collections (1)
  • Jackson (1)
  • JSON (1)
  • DevOps (1)
  • Core Java (1)

Mocking JDBC for Unit Testing

Testing code that uses JDBC objects to interact with the database raises important questions about mocking. It’s tempting to use Mockito to stub all the java.sql objects involved in acquiring a JDBC Connection, creating a Statement, executing a query and retrieving the data from the ResultSet. This comes with its own set of problems, though.

Read More →

Baeldung on Kotlin

  • All
  • Testing (1)
  • Kotlin Strings (1)
  • Kotlin Numbers (1)
  • Kotlin Basics (1)
  • Kotlin Arrays (1)

Baeldung on SQL

  • All
  • Database Concepts (1)