27 lutego 2013

Approaches to testing

I have learned testing in the hard way. To be honest my first tests probably didn't test anything. Unfortunately there was no one around me who could help me with it so I was on my own. After few weeks I was able to write unit tests that actually check behaviour of my classes. Green bar really made me proud. However my unit tests at this point were really complex and hard to maintain. I knew that something is missing in my tests and I need to learn more. It was few years ago. Today I know way more about testing but I'm still learning. My latest lesson comes from Oredev Conference.

3 lutego 2013

Java synchronizers - Countdownlatch

Package java.concurrency contains many high level APIs for working with concurrency. It has been added to JDK in version 5. It's quite long time ago. However many developers still use raw Thread and synchronization. I'm pretty sure it is not because they like it but more likely they don't know what kind of goodies they have at their disposal. So in order to spread the word I would like to present Java synchronizers and how to work with them.