Java News from Sunday, September 12, 2004

Martin Fowler points out some really weird behavior in JUnit. Apparently JUnit creates a new test object for each test. I understand why it does that, and I agree with the principles behind it. But this has some other implications:

Several people have now tried to explain this to me, including Bill Venners, and it still doesn't make a lot of sense. The only real difference appears to be that the constructor is called before any tests are run and the setUp method is called immediately before each test is run. I suppose if the fixture did something like iopen a file for writing that only one object could do at a time you might have to use setUp but barring that there's not a whole lot of reason to use setUp.


SpaceRoots has released Mantissa 5.3, "a collection of various mathematical tools aimed towards for simulation. It is not a complete mathematical library like GSL, NAG or IMSL, but it contains various algorithms useful for dynamics simulation and 3D geometry computation." Its algorithms inlcude:


André Simon has released Highlight 2.2-3, a free-as-in-speech (GPL) source code formatter that understands 85 programming languages including Java and generates HTML, XHTML, RTF, TeX, LaTeX, and XSL-FO output. Highlight is a command line application written in C++ for Unix and Windows.


Frank Karlstrøm has posted the second beta of JCache 1.0, an open source caching system for Java database-based applications based on the JSR-107 JCache API. This is mostly a bug fix release. JCache is published under the LGPL.