Java Design for Testability

Hi AllAre there any best practices to make Java code / design project to be more testable.Working on a web based (java / jsp) project.Please let me know if you have any suggestions or good pointers.Regardsbib
[250 byte] By [bib1a] at [2007-11-27 9:48:26]
# 1

There are lots of good techniques that can make testing much easier, but the simple one I want to suggest to you is this:

Shrink the size of your persistant "state" down to the smallest it can be. If it's possible, do not hold any state at all. Testing systems built with a functional paradigm in mind is generally easier because you don't have to consider all the different states you could be in

tjacobs01a at 2007-7-13 0:16:52 > top of Java-index,Java Essentials,New To Java...
# 2
Separate your tiers. Nothing smells worse than a JSP page with database access code.Nothing? Well, yesterday I mentioned stored procedures that generated HTML...
BigDaddyLoveHandlesa at 2007-7-13 0:16:52 > top of Java-index,Java Essentials,New To Java...
# 3
> Separate your tiers. Nothing smells worse than a JSPGood one
tjacobs01a at 2007-7-13 0:16:52 > top of Java-index,Java Essentials,New To Java...