December 15, 2003

Test coverage addict

Since I requested a clover license for nyx / xulux I got hooked to have my coverage to 100%.
The positive part is that I have another good look at my code from a different perspective and fixed numerous possible issues that could arise when other people start writing extensions (eg a gui driver), on the other hand I probably overdo it a bit. Eg I have an imageloader system in place that by default tries to use jimi for showing icons and images (hey it supports ico files). In the interface I have a method isUsable() that checks if the main jimi class is actually is loadable.

public boolean isUsable() {
try {
Class.forName("com.sun.jimi.core.Jimi");
} catch (ClassNotFoundException cnfe) {
return false;
}
return true;
}

Hmm.. How to test the classNotFound exception in this case when jimi is always on your classpath ? You have to write a classloader that throws that exception when it tries to load the jimi class.. (see the JimiImageLoaderTest)
Also my ClassLoaderUtilsTest was a horror to get to 100%..

Maybe some nice junit extensions could be created which handle this behaviour came to mind several times last night..

Have I lost it, or am I actually doing the right thing ?

Posted by mvdb at 02:23 PM | Comments (4)

December 12, 2003

Xulux / Nyx new site is uploaded

Finally got around to it : a long overdue update of the nyx site.
For people unkown to xulux/nyx : In short : it's a gui independend framework, the longer version is in the document updates :)
Currently a lot of documentation is mixed up with names (one line using Xulux the other using Nyx), but that's because I am in the process of moving nyx to the main project xulux. Some renaming of classes will also happen, besides the package renaming and the seperation of the swing packages, into a seperate build.
If you have any comments, please let me know (esp the graphs can be confusing, since I find making graphs confusing.. At least I am an idiot enough to write 1 graph in SVG by hand). I got more brains since then and started using some other tools :)

You can find the site at http://nyx.xulux.org

Posted by mvdb at 02:11 AM | Comments (0)