ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button
  Taking JUnit Out of the Box
Subject:   JUnit
Date:   2007-06-02 03:18:16
From:   muhammadowais
What is JUnit testing. I mean to say Unit testing is only for one class for which test case is prepared or it also checks the linked classes. For example If in my scenario I have a class A and B. Class A access Class B. Now if I create a Class ATest will it also test Class B?

Moreover if I use some test coverage tool like Cobertura. Will it also cover the results from Class B along with Class A.

Thanking you in advance