Wijsmullerbros.nl

Look, you've got it all wrong! You don't need to follow me. You don't need to follow anybody! You've got to think for yourselves! You're all individuals! Brian: You're all different! Crowd: [in unison] Yes, we are all different! Man in crowd: I'm not...

— Monty Python

Oct
3

We're currently doing some stuff using Google Web Toolkit. To test it, we're following Google's advice on the MVP pattern, to make things testable.

Now MVP is all nice and all, but a little more work than just making some widgets unfortunately.

Today I came across this nice support library: http://code.google.com/p/gwt-test-utils/
It looks promising, even if it requires an agent to run. Though for our project it is a no-go because it also requires java 6, while we're stuck at java 5.

On the other hand, it's not all that bad. The validation on input can be dealt with on the client side, which is really cool and snappy.
Another good thing is the Animation class which offers a surprisingly simple way to morph, move and do other cool stuff inside your browser screen! Instant awe effects :D

What's nice is that GWT does not dictate anything about how to run your server side, you're free to do whatever.
If you're looking for a quick way to interact with the server I can recommend gwt-dispatch, works like a charm and is relatively simple to use.

More soon.

2 comments

Anonymous

Actually, gwt-test-utils does not use a java agent anymore, everything is done through a custom classloader since almost 16 months ;-)

It has been designed for Java 1.5, so you'd be good to go with it ;-)

Cheers,

Gael

braam

Hey that's good news, I will try it for sure :D