Using Mock Objects with EasyMock and Mocquer

OnJava.com have an interesting article about using Easy Mock and Mocquer for using Mock Objects for Unit Testing.

Mock Objects are incredibly useful for Unit Testing in order to test a slice of your application in isolation from the rest of the application. Mock Objects behave as a facade to the rest of your real application but with stubbed out logic (or alternative logic for testing), so you can test an individual piece of code in isolation from other code.

EasyMock is a framework that automatically generates mock object proxies for you from interfaces (so you don’t have to write the mock object yourself by hand), and Mocquer takes this a step further and facilitates the generation against regular classes.

Ditching Norton AntiVirus on Windows PCs

I’ve long wondered about this but suffered along with everyone else anyway… isn’t Norton AntiVirus slowing down my PC?

I’ve noticed it more recently when I’ve downloaded some software and I’m unzipping a large zip file that in itself contains either large files or more large zips, copying files between network drives, or deploying WAR or JAR files to JBoss – it seems like when Norton kicks in to scan these files it adds a few extra seconds to the task, which should only take subsecond anyway.

CNet.com have an interesting article addressing exactly this fact, and better still, they recommend an alternative, PC-cillin Internet Security 2005, which is less of a resource hog. I just might have to take a look….