Articles récents

Eloquent JUnit: from Matchers to Builders (EN)

VERSION FRANCAISE

  1. Context
  2. The Test: verbose
  3. The Matcher: concise
  4. The Builder: eloquent
  5. Improvements
  6. Conclusion
  7. Sources

Context

I had to make an evolution on a legacy code handling a large number of nested Java objects. The code was instancing several thousands of the class Demande (“Request”) from a ResultSet.

This class Demande was characterized by:

  • plenty of attributs, like dates or amounts,
  • and a lot of nested objects. Under the root Demande, there were 9 sub-levels with as much of 20 attributes each.

So, I began to write tests to guarantee non-regression…

Lire la suite

  1. User story Laisser une réponse
  2. Eloquent JUnit: from Matchers to Builders Laisser une réponse
  3. Agile Game France – 2014 (v3) Laisser une réponse
  4. JUG 28.01.14 – Reverse Psychologie in Java development, par Nicolas Peru Une réponse
  5. Le Père Noël a ramené des Lego… Serious Play @ Meetup Une réponse
  6. JUG 28.01.14 – Nespresso Agile Development Center, Guillaume Vial 5 Réponses
  7. GenevaJUG – Soirée Quickies pour le 4ème anniversaire 2 Réponses
  8. Lego Serious Play @GE Laisser une réponse
  9. Fausse certitude Laisser une réponse