Interface Testing

If we have an interface, but no concrete class which implements it. How we will test that interface in white box testing?

Questions by usmita

Showing Answers 1 - 3 of 3 Answers

Define the interaction between your classes in terms of interfaces rather than through the use of strongly typed classes.  Begin de-coupling those classes.  Remove the dependency on a concrete class and shift it to an interface.  It's sort of like unit testing.  It is sometimes necessary to include the use of another class, another instance, to actually be able to perform tests on the unit in question.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions