Valentin Zickner's Posts

Testing an Apache Kafka Integration within a Spring Boot Application and JUnit 5

March 29, 2020

Almost two years have passed since I wrote my first integration test for a Kafka Spring Boot application. It took me a lot of research to write this first integration test and I eventually ended up to write a blog post on testing Kafka with Spring Boot. There was not too much information out there about writing those tests and at the end it was really simple to do it, but undocumented. I have seen a lot of feedback and interaction with my previous blog post and the GitHub Gist. Since then spring-kafka-test changed two times the usage pattern and JUnit 5 has been introduces. That means theā€¦

Read more

Using Java 8 Dates with Spring JPA and PostgreSQL for Custom Queries

October 5, 2018

Storing dates in databases was traditionally done with java.sql.Date and java.sql.Timestamp. Since we would like to write modern applications, with Java 8 or 11, it is preferable to use an OffsetDateTime or a LocalDateTime. Spring Data JPA, for example, is mapping those fields automatically to the correct database field. There are still some challenges in combination with PostgreSQL.

Read more
Older posts