Archive for June, 2006
Moved cintoo Messages from jMock to EasyMock
0 Comments Published June 30th, 2006 in Java, Software development, cintooSeveral reasons convinced me to move cintoo Messages from jMock to EasyMock 2. The main reason is that jMock has no static importable methods for mock creation and verification. The way to do this in jMock is to extend a jMock TestCase class. Unfortunately this class depends on JUnit, so when moving to TestNG I […]
The funniest quote I’ve read for some time is “Lower-level languages that don’t support associative arrays (such as C++ or Java) are not as good for implementing tag clouds, because you will end up writing considerably more code.” on an ORA site. Later on in the comments the author says he really meant syntax support […]
cintoo Messages 1.0 released
2 Comments Published June 27th, 2006 in Java, Software development, cintooDue to the help by Alex with TestNG I finalized the Messages 1.0 release.
Messages is a free framework to make internationalization easier for Java
applications. It adds several features compared to default Java internation-
alization and support locales for threads and different bundles for different
packages. This allows the usage of different bundles for different parts of
the application […]
Successfully moved Messages to TestNG
0 Comments Published June 26th, 2006 in Java, Software development, cintooThanks to the help from Alex (from the TestNG project, great support) I managed to move Messages from JUnit 3 to TestNG. TestNG is more flexible and seems to move faster. JUnit 4 was released after I started moving projects to TestNG, so my default now is TestNG and I only use JUnit 4 […]
Why, oh why, doesn't TestNG work for me?
5 Comments Published June 26th, 2006 in Java, Software development, cintooI switched several projects from JUnit 3 to TestNG. After some minor problems with the fact that TestNG doesn’t seperate tests as JUnit does per default, everything works in IDEA and Maven. But whatever I tried, I can’t get TestNG to work with Ant. The TestNG Ant task just doesn’t find any tests. I […]
cintoo Messages 1.0 RC1
0 Comments Published June 16th, 2006 in Java, Software, Software development, cintooJust made the last version the RC1 version without changes. Everythings seems to be working, no complaints. If everything moves along as planned, this will become 1.0 final. After that I’ll have some ideas on 1.1. Thanks to all users for their feedback.
http://messages.cintoo.org
var dzone_style=”2″;
Method names in Java can be named _ and why static import is a good thing
3 Comments Published June 6th, 2006 in Java, Software development, cintooWhen formatting messages with Messages.format code becomes quite noisy. So I thought why not use a special char for the method name? I used “_” which seems to be unintrusive.
Messages.format( “FILES_WRITTEN”, files);
then becomes
Messages._( “FILES_WRITTEN”, files );
combining this with the new static import feature from Java 1.5 (great timing :-) this becomes
import static api.cintoo.messages.Messages.*;
_( “FILES_WRITTEN”, files);
which […]
I’ve released nother alpha, which looks quite final, so the next one will be a beta version.
Changes since the last version:
- Added support for hierarchies, if a key is not found in one context (e.g. my.package)
Messages now looks in the parent context (e.g. my)
- Added support for language hierarchies,if a key is not […]