Categories
Development

Surrogate test objects

Surrogate is an open source project for mocking dependencies in unit tests. It enables you to unit test existing code, without modification even though it is not based on dependency injection. It does this through AspectJ weaving where it intercepts calls to objects that needs to be mocked. Take a look at it, it should solve some hard to solve test cases you might run into (like simulating slow performance by replacing calls to System.currentTimeMillis()).

According to java.no it has been developed by Telenor (Norways largest telecom company), and according to their own docs used in large projects with 4000 unit tests.

Categories
Development

IntelliJ free for open source projects

Jetbrains is handing out licences to IntelliJ IDEA to open sourc projects. The requrements are quite fuzzy though, and I bet many sourceforge projects with 2-3 developers will have trouble passing. Or maybe they are just nice guys. 🙂 Read here.

Categories
Development

Certified

Oh, yeah. I’m now a Sun Certified Programmer. 🙂

I can understand why some people complain about the certification, it really is a bunch of things you don’t use much in your daily work. But it is also details that any Java programmer should really know about the language. I found the parts about string handling, collections and threads to be the most relavant ones and something I should have learnt properly a long time ago. 🙂