jGuru
Register Email     Password Forgot your
password?
HOME FAQS FORUMS DOWNLOADS ARTICLES PEERSCOPE LEARN

  Search   jGuru Search Help

View:
JUnit FAQ Home Page

FAQ Manager is guru Mike Clark.

JUnit is a regression testing framework written by Erich Gamma and Kent Beck.

What's New

How do I run setup and tear-down code once for all my tests?
Tools:Testing:JUnit
Mike Clark, Apr 30, 2002
Wrap the top level test suite in a subclass of TestSetup. The following is a sample AllTests.suite() method: public static Test suite() { ...
How do I test a method that returns void?
Tools:Testing:JUnit
Mike Clark, Apr 30, 2002
Test an expected side-effect of the method. This may involve querying an instance variable or passing in a mock object to collect the results of the...
How do I implement a test case for a thrown exception?
Tools:Testing:JUnit
Erik Meade, Mar 3, 2002
Catch the exception and if it isn't thrown call the fail method. Fail signals the failure of a test case. Here is an example: public void testIndexOu...

What is JUnitEE?
Tools:Testing:JUnit
Govind Seshadri PREMIUM, Oct 30, 2001
JUnitEE is a simple extension to JUnit which allows standard test cases to be run from within a J2EE application server. It is composed primarily of a...
How can I use JUnit to test J2EE/EJB applications?
Java:API:EJB, J2EE, J2EE:EJB, J2EE:Servlets, Tools, Tools:Testing:JUnit
John Mitchell PREMIUM, Dec 12, 2000
Check out Jeff Schnitzer's JUnitEE package and the Wiki EJB Unit Testing page.
What do all of these XP (eXtreme Programming) acronyms mean?
Tools:Testing:JUnit, Process:XP
John Mitchell PREMIUM, Oct 4, 2000
Check out the XP Glossary.
When I use HttpUnit, I get a runtime exception - HttpUnit is looking for something called org.w3c.xml.Tidy. Where is this?
Tools, Tools:Debugging, Tools:Testing:JUnit
Tom Copeland, Sep 11, 2000
HttpUnit uses Tidy to parse HTML. You can download Tidy here.
How can I use JUnit to test a method that takes a complex parameter - like an HttpServletRequest?
Tools, Tools:Debugging, Process:Patterns, Tools:Testing:JUnit
Tom Copeland, Jul 25, 2000
Say you want to test this method: public Vector getEmployeeList(HttpServletRequest req) { Vector list = new Vector(); String department = re...
How can I use JUnit to ensure that my servlets/JSP are producing valid HTML?
Java:API:Servlets, Java:API:JSP:Debugging, Tools, Tools:Debugging, Programming:Concepts:Parsing, Tools:Testing:JUnit, Languages:Markup:XML:DOM
Tom Copeland, Jul 25, 2000
There's the traditional, brute force way - write a JUnit test case that opens a HttpURLConnection to your servlet, reads the content, and does various...
What debugging tools exist for Java?
Java:Language, Java:Performance, Tools, Tools:Misc, Tools:Debugging, Programming:Style, Tools:Testing:JUnit
John Mitchell PREMIUM, Apr 14, 2000
Check out logging packages like log4j and unit testing frameworks like JUnit. Check out static analysis tools such as Metamata's Audit and Metrics ...
What's an example of a simple JUnit test case?
Tools, Programming:Style, Tools:Testing:JUnit
Tom Copeland, Mar 17, 2000
Say you've got a little method, getName(String path) that parses a file name from a file path. You can write a JUnit test class to feed it a path and...
What are the differences between the different versions of JUnit?
Tools, Tools:Testing:JUnit
John Mitchell PREMIUM, Mar 17, 2000
The Wiki site contains a summary of changes to JUnit page.
Where can I find unit testing frameworks similar to JUnit for other languages?
Tools, Tools:Testing:JUnit
John Mitchell PREMIUM, Mar 17, 2000
From the XP Software page.
Where can I get the latest version of JUnit?
Tools, Tools:Testing:JUnit
John Mitchell PREMIUM, Mar 17, 2000
From the XP Software page.
What is JUnit?
Tools, Tools:Debugging, Tools:Testing:JUnit
Tom Copeland, Mar 16, 2000
JUnit is a free, open source Java framework that makes unit testing easier and more effective. Complete details are available at JUnit. There's also...


Ask A Question



Related Links

JUnit Forum

JUnit Homepage

Wish List
Features
About jGuru
Contact Us

 



The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers