Coverage tests with HanselThe add tests of your test in one way, you can/should extend your test suite with a coverage test. This is whare the hansel framework comes in. Also see the sheets.
To be able to use the Hansel package, you need to include the hansel.jar and bcel.jar files to the class path. As it has been put (by me) in the /usr/share/java directory, it is automatically included in the java classpath if you use this ant build.xml file. The TestCoverage class could be modelled like this one: shop.ShoppingTestCoverage.java To be able to use hansel under eclipse you must do the following:
Entry<Item,Integer>entry=...) then you
must turn off a few debugging flags in eclipse. I think it is
the classname attribute debug flag or something
simmilar. This is a problem in java 5 with this kind of
debugging, because the same happens with normal debugging on
and building/testing under ant.