I write virtually all of my code using TestDrivenDevelopment and UnitTesting. I believe strongly in AcceptanceTesting, but have had limited success in getting organizations to buy-in. (Instead, they seem to fall back on manual testing by a bunch of QA people.)
[http://idiacomputing.com/moin/PrimaryKeyGeneration#head-d7949da7a424b68c0ae6279e11b7e8718331321e HttpUnit and autonumbered primary keys]
Some other things that look interesting:
[http://patterntesting.sourceforge.net/whatis.html Pattern Testing] allows you to check coding/design standards across the project. This looks very interesting, but I haven't tried it. (thanks to Jeff Waltzer)
[http://www.jdemo.de/ JDemo Framework] mentioned by Ilja Preuss on TestFirstUserInterfaces@yahoogroups.com