Instead of newing up B in your class, either inject it, or a factory. An IOC approach like this doesn't only make testing simpler - I find it makes complex systems with many components easier to work with.
Cheers,
Simon B.
--
You received this message because you are subscribed to the Google Groups "mockito" group.
To post to this group, send email to moc...@googlegroups.com.
To unsubscribe from this group, send email to mockito+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mockito?hl=en.