jdbc spring

Age of Spring

Since it first version, Spring has known success. How is it possible that such an unknown framework (at the time) has become so widespread that companies demand to attendants to have Spring knowledge? I think they are two main reasons for this. First, the use of Inversion of Control really helps unit testing your classes and since unit tests have become a hot topic, it is natural that a framework that promote independency between classes should win. But they are other IoC frameworks available.

open source opensource quality sonar

Manage the quality of your projects with Sonar

Sonar is a free OpenSource product that provides you with a general dashboard displaying information about the codebase of each configured project, such as: Number of failed tests,% of code coverage,% of rules compliance (more later),% of duplicated lines,and much more. Then you get an additional graphical information showing: a square for the size of your project’s codebase relative to the entire codebase’s size,a color (from red to green) for the % of rules compliance. Yet, w

batch shutdown hook

Gracefully stop your batches

In applications, one sometimes needs to run some processes before and after the application’s run. Whereas in an application server you have full access to the web application lifecycle through the javax.servlet.ServletContextListener interface, there is no such thing in a plain old Java application. Doing things before is easy enough since you have access to the application’s entry point in the form of the public void main(String[] args) method. But how do you things after? Where i

reflection

Java - The power of reflection

Ever heard of reflection? It’s a powerful Java technique that make it a possible for the JVM to manipulate objects the developer did not know about. There’s an entire API devoted to it: it is located under the java.lang.reflect package. For example, I once created a RPC web-services engine that could launch any methods of any class so long a the adequate class could be found on the classpath. It is not really hard to do. But the true power of reflection lies within its ability to

download eclispe ganymede

Ganymede is out

A quick one this week (hey, it’s summer, everyone is entitled to a little lazyness). After all the long waiting, Ganymede is out ! Apart from being one of Jupiter’s moons (like Callisto and Europa ), Ganymede is the latest release of the Eclipse IDE, namely version 3.4. Ganymede is available in several packages, one will suerly fits your needs. You can download them from here and then update the package from within Eclipse. Have fun!

dbunit derby javadb unit test

Speeding up your DBUnit tests with JavaDB

Introduction to DBUnit With the developed use of JUnit, many additions were made to it. These additions take advantage of the pluggable nature of JUnit. One of these contribution is DBUnit. DBUnit enables your unit tests to: preload the database with datas pertaining to your current test only,run your unit test (as usual),remove the data you preloaded in order to put the database in the same it was before your additions. In effect, you can now test your DAO classes. Let’s take a (very)

junit testng unit test

The unit test war : JUnit vs TestNG

What is unit testing anyway? If you’re in contact with Java development, as a developer, an architect or a project manager, you can’t have heard of unit testing, as every quality method enforces its use. From Wikipedia: Unit testing is a test (often automated) that validates that individual units of source code are working properly. A unit is the smallest testable part of an application. In procedural programming a unit may be an individual program, function, procedure, etc., wh