Java
-
Parameterized Test Runner in JUnit
We all have written unit tests where in a single test tests for different possible input-output combinations. Lets look how…
Read More » -
The anatomy of Hibernate dirty checking
Introduction The persistence context enqueues entity state transitions that get translated to database statements upon flushing. For managed entities, Hibernate…
Read More » -
Debugging OpenJDK
Sometimes debugging Java code is not enough and we need to step over the native part of Java. I spent…
Read More » -
JPA Tutorial – Setting Up JPA in a Java SE Environment
JPA stands for Java Persistence API, which basically is a specification that describes a way to persist data into a persistent storage,…
Read More » -
Programming a simple slot machine game using Java
No matter how simple or complex the game is, Java can do the job! On this post, let’s take a look…
Read More » -
JavaFX Tip 14: StackPane Children – Hidden But Not Gone
Another short tip: Swing provides a layout manager called CardLayout, which manages a set of components (cards) inside a container…
Read More » -
Java Concurrency Tutorial – Visibility between threads
When sharing an object’s state between different threads, other issues besides atomicity come into play. One of them is visibility.…
Read More » -
This is Stuff: jUnit: Dynamic Tests Generation
Dynamic tests generation is useful when you need to run the same set of tests on many different input values…
Read More » -
URL shortener service in 42 lines of code in… Java (?!) Spring Boot + Redis
Apparently writing a URL shortener service is the new “Hello, world!” in the IoT/microservice/era world. It all started with A…
Read More »