On Fri, 2005-07-01 at 11:06 +1000, Greg Irvine wrote:
> Generally the fact that it's UI related is pretty irrelevant. There's
> probably very little that actually requires you to see if a physical
> checkbox is checked or a text is in a particular place.
> It's more about confirming a certain list of items are stored in your
> model/data-table rather than physically added to a JList or whatever.
>
> You should be able to mock whatever external interfaces are used in any of
> your classes so you can test those classes in isolation and just confirm
> what the expectations of each individual class are. Of course, that's in a
> perfect world and requires a lot of interfaces being passed around rather
> than classes. :)
It's true! Now if we only had a patch...
Received on Sat Jul 2 02:09:25 2005