Skip to content
Archive des articles rangées dans la catégorie Java .

SQL strangeness

I’ve been caught several times on the same bug recently : some method takes a collection as argument, and must execute a SQL (actually, a Hibernate query) to find all foos having their ID in the given collection:

public List<Foo> findByIds(Set<Long> ids) {
String [...]

Cobertura on Google App Engine reloaded

In a previous article, I explained how to get the code coverage data generated by Cobertura, for integrations tests of an application deployed on Google App Engine.
Cobertura just released a new version (1.9.4), which is supposed to be up to 10 times faster (kudos for that), but is not backward compatible. I thus had to [...]

I18ning a Java web app

Internationalization (i18n in short) is a tedious task. You need to be meticulous, and to know enough about some foreign languages and cultures in order to avoid making bad assumptions.
A common mistake made by beginners is to use concatenation to format parameterized messages. It not only makes the process harder than necessary, but it also [...]

Cobertura on Google App Engine

A good web application should be tested, preferrably with automated integration tests. HtmlUnit is great to write these tests. Measuring the code coverage of these integration tests is as important in my opinion than measuring the code coverage of pure unit tests.
Cobertura is a great tool to measure it. Unfortunately, the usual and only documented [...]