Thursday, May 17, 2007

Test-driven Java project moving on

I got a slight push to my own project when I gave a few days advanced course on Java programming. The topics on this course included Swing UI programming, JDBC database connectivity and many other interesting techniques. So during this course I came back to my application adding some user interface and doing this of course test-driven.

The normal JUnit framework wasn't enough for TDDing the UI, so I found JFCUnit that is an extension to JUnit and provides mechanisms for this. Using it is fairly simple and you can get started with quite small amount of effort. The documentation found on the website guides newbies nicely to the world of GUI unit testing.

Well anyways, the first version of the UI has been set up and the application is pretty close to being almost usable. Strange how a nice UI makes the application feel a lot more professional...
Google