Archive for category Tips

OutOfMemoryError in Eclipse with JDK 1.6.0_21, on Windows


This past weekend I spent a good amount of time trying to solve an OutOfMemoryError that made Eclipse crash every 5 minutes. I’m running Eclipse Helios on JDK 1.6.0_21, with the following plug-ins: Subclipse, m2eclipse and Atlassian Eclipse Connector. It was hard to figure out which one was the troublemaker, since I installed everything in one shot on my new Windows laptop [...]

,

1 Comment

Running Ubuntu in VirtualBox at 2560 x 1600!

Once I got my new PC last weekend, the first thing I did was to install Ubuntu 10.4 in VirtualBox (now updated to 3.2.4) in a Windows 7 host. Installation of both VirtualBox and Ubuntu was quick and painless. They just work. Since I have a 30′ monitor and a powerful video card, I wanted [...]

, , ,

9 Comments

Writing EDT-safe Swing UI tests

Lately, I noticed that one of the main topics in the FEST mailing list is violation of Swing’s threading policy in UI tests. Surprisingly, this subject is not really referenced directly. Most of the time, it appears in the form of questions, code snippets or test cases not related to Swing threading at all. It [...]

, , ,

14 Comments

How to make Clover ignore private constructors

I’ve been using Clover for some time in FEST and I have found very useful. I don’t believe in “x”% coverage as a sign of good-quality code. Instead, I use code coverage to decide which parts of my code need more testing. Something I’m not comfortable with is seeing 0% coverage in private constructors. IMHO, [...]

, ,

No Comments