> > black box, functional, acceptance and integration tests are all > important but > they are not unit tests. ?
Isn't it blackbox testing (or in other words "interface testing")?: public interface Calculator { int sum(int a, int b) } public class CalculatorImpl { ... } public class CalculatorTest extends TestCase { testSum() { Calculator calculator = getImpl(); final a = 2; final b = 5; assertEquals(7, calculator.sum(2,5)); } } So basically with CalculatorTest I am able to test every implementation of Calculator interface Testing with Mock object is often (almost always) white box testing as you use the knowledge that e.g. class A will call class B regards mm --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]