Monday, March 31, 2014

Week 12 and 13 review

Welcome to the next installment of Codeleak.pl: Week Review!. I want to share with you some interesting reads that I encountered within last two weeks. A very subjective selection.

Sunday, March 16, 2014

Week 10 and 11 Review

Welcome to the next installment of Codeleak.pl: Week Review!. I want to share with you some interesting reads that I encountered this and previous week. A very subjective selection.

Wednesday, March 5, 2014

Sunday, March 2, 2014

Week 09 Review

Welcome to the next installment of Codeleak.pl: Week Review!. I want to share with you some interesting reads that I encountered this week. A very subjective selection.

Saturday, March 1, 2014

JUnit ExpectedException rule: beyond basics

There are different ways of handling exceptions in JUnit tests. As I wrote in one of my previous posts, my preferable way is using org.junit.rules.ExpectedException rule. Basically, rules are used as an alternative (or an addition) to methods annotated with org.junit.Before, org.junit.After, org.junit.BeforeClass, or org.junit.AfterClass, but they are more powerful, and more easily shared between projects and classes. In this post I will show more advanced usage of org.junit.rules.ExpectedException rule.