Transilvania JUG

Sponsors

09
Oct
2012
0

Helper for testing multi-threaded programs in Java

Testing multi-threaded code is hard. The main problem is that you invoke your assertions either too soon (and they fail for no good reason) or too late (in which case the test runs for a long time, frustrating you). A … Continue reading

23
Sep
2011
0

Capturing Log4j logging output

Lets say that you need to verify that a certain logging message gets printed in a unit-test. Then the first step is to pause and ask yourself: do I really need to do this? Unit-tests involving text matching are particularly … Continue reading

df