Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

One of the advantages of unit testing is that a test case should focus only on the methods of the class under test, in isolation from
related application classes, or APIs provided by any container that the class under test might be installed into at runtime. But, how do you test an application class that has dependencies on such APIs (such as depending on the Servlet API to provide an HttpServletRequest object representing an incoming HTTP request)?

...