Skip to content
  • HOME
  • BLOG
Linkedin Github
Local H2 in-memory DB with Spring Boot
database · java · spring

Local H2 in-memory DB with Spring Boot

ByOskar Bogacz 12 August 202229 November 2022

Configuring a local instance of a database service, the DB schema and java-config could kill the last desire to work. Because setting up all staff related to a database can take a lot of time, the local H2 database instance can help to quickly create a prototype of an app…

Read More Local H2 in-memory DB with Spring BootContinue

Singleton container with Testcontainers library
java · libraries

Singleton container with Testcontainers library

ByOskar Bogacz 2 August 202229 November 2022

Testcontainers library is a perfect tool for providing Docker containers with external components from an integration test class level. With this tool, we are able to check how our codebase behaves with a real-life external system. But running an instance of a container for every test class sounds like poison…

Read More Singleton container with Testcontainers libraryContinue

Testcontainers library for integration tests
java · libraries

Testcontainers library for integration tests

ByOskar Bogacz 28 July 202212 August 2022

Sometimes when I needed to write integration tests, I was forced to mock an external system or service from the java tests level. It wasn’t enjoyable and what is more, it required spending many hours on creating a codebase which tried to behave like a real system. It is dangerous…

Read More Testcontainers library for integration testsContinue

How to find duplicates in a collection?
java

How to find duplicates in a collection?

ByOskar Bogacz 17 July 202229 November 2022

Sometimes it is needed to find duplicates in a collection. I met this challenge a couple of days ago and my first thought was “Ha! What a trivial task!”. But then I realised that we could use a wide range of tools in Java to reach a hill of success…

Read More How to find duplicates in a collection?Continue

© 2024 Oskar Bogacz

  • HOME
  • BLOG