oskar
bogacz
.dev
The newest posts:
Local H2 in-memory DB with Spring Boot
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…
Singleton container with Testcontainers library
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…
Testcontainers library for integration tests
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…
Git reflog
All operations in git like commits, merges etc. are stored in a particular place named “reference logs”. Git keeps track of every action on your local repository, every! Git has its own quiet worker who notes each of your moves. The first time when I needed to learn what git…
How to find duplicates in a collection?
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…