Java
-
Testing System.in and System.out with system-rules
Writing unit tests is an integral part of software development. One problem you have to solve when your class under…
Read More » -
Hibernate locking patterns – How does Optimistic Lock Mode work
Explicit optimistic locking In my previous post, I introduced the basic concepts of Java Persistence locking. The implicit locking mechanism…
Read More » -
Learning Netflix Governator – Part 2
To continue from the previous entry on some basic learnings on Netflix Governator, here I will cover one more enhancement…
Read More » -
SSL with WildFly 8 and Undertow
I’ve been working my way through some security topics along WildFly 8 and stumbled upon some configuration options, that are…
Read More » -
Self-Signed Certificate for Apache TomEE (and Tomcat)
Probably in most of your Java EE projects you will have part or whole system with SSL support (https) so…
Read More » -
NoSQL with Hibernate OGM – Part one: Persisting your first Entities
The first final version of Hibernate OGM is out and the team recovered a bit from the release frenzy. So…
Read More » -
Java8 Lambdas: Sorting Performance Pitfall EXPLAINED
Written in collaboration with Peter Lawrey. A few days ago I raised a serious problem with the performance of sorting…
Read More » -
Logging to Redis using Spring Boot and Logback
When doing centralized logging, e.g. using Elasticsearch, Logstash and Kibana or Graylog2 you have several options available for your Java…
Read More » -
Separating Integration Tests from Unit Tests Using Maven Failsafe & JUnit @Category
Why Unit Tests Should Run Separately From Integration Tests TDD at the Unit Testing level is fairly straight-forward, since classes in unit…
Read More »