codjo/codjo-workflow — pull request #3 by codjo-sandbox (2012-07-18 16:20:12+00:00)
Title: Bug fix on purge and resource deallocation enhancement

## Bug fix on purge

### Context
Random failure on ```PurgeAuditJobRequestTest``` due to bad date comparison.

### Description
In the purge process, there were two methods to transform the period given by the user into a java ```Date```: one was keeping the hours, minutes, seconds milliseconds, but not the other.

This was leading to a bug as we could have a gap between the GUI message (for example annoncing 3 rows to be deleted) and the real deleted row number (for example 4 rows deleted).

## Enhance resource deallocation

### Context
The ```CommandFileTest``` unit tests are failing regulary.

### Description
We now close explicitly the streams and readers during the run method.