-
Enterprise Java
Spring 3 Testing with JUnit 4 – ContextConfiguration and AbstractTransactionalJUnit4SpringContextTests
Looking in the internet for a way to test my Spring 3 application, I found many articles that describe how…
Read More » -
Enterprise Java
Code coverage with unit & integration tests
On a pet project recently I set out to build automated UI (integration) tests as well as the normal unit…
Read More » -
Enterprise Java
Avoid Lazy JPA Collections
Hibernate (and actually JPA) has collection mappings: @OneToMany, @ManyToMany, @ElementCollection. All of these are by default lazy. This means the…
Read More » -
Scala
Scala Tutorial – objects, classes, inheritance, traits, Lists with multiple related types, apply
Preface This is part 9 of tutorials for first-time programmers getting into Scala. Other posts are on this blog, and…
Read More » -
Enterprise Java
Play! Framework: Why Did I Fall in Love with it
Some time ago, I was the tech lead for a few very large deployments on the Real Estate market for…
Read More » -
Enterprise Java
Java EE6 CDI, Named Components and Qualifiers
One of the biggest promises java EE6 made, was to ease the use of dependency injection. They did, using CDI.…
Read More » -
Core Java
Testing an Object’s Internal State with PowerMock
Most unit testing focuses on testing an object’s behaviour in order to prove that it works. This is achieved by…
Read More » -
Core Java
Top 10 Java Books you don’t want to miss
We learn by reading books and experimenting on it. So, it is imperative that you choose the best available options.…
Read More » -
Enterprise Java
Parametrizing custom validator in JSF 2
Writing a custom validator in JSF 2 is not a complicated task. You implement Validator interface, add @FacesValidator annotation and…
Read More »